While executing the POST or PUSH requests in Postman for the following repository (https://github.com/websharper-samples/PeopleAPI),
I am getting this error :
System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
Error Screenshot
How do I set AllowSynchronousIO to true in f# to execute POST or PUSH requests for an API?
Extremely late to the party. I had this problem with Giraffe F#. Fixed it by changing
to
and the
configKestrel
function looks like: