iPaaS Group

Azure Logic Apps · Standard logic apps: Visual Studio Code

Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead

Short answer

This error can appear after a Standard workflow starts running locally in Visual Studio Code with webhooks enabled. Open local.settings.json in the project root folder and set FUNCTIONS_V2_COMPATIBILITY_MODE to true.

VerifiedLast verified

01Error text

Azure Logic Apps error
message='Http request failed with unhandled exception of type 'InvalidOperationException' and message: 'System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.'

02Likely causes

  • The error can appear after the workflow starts running locally, when locally running webhooks are enabled. The docs give the fix and do not state a cause.

03How to fix it

  1. Open local.settings.json in the root folder of the project.
  2. Make sure the property "FUNCTIONS_V2_COMPATIBILITY_MODE": "true" is set.
  3. Save the file and run the workflow again.

04Fix it with AI

Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.

Prompt
I'm getting this error in Azure Logic Apps (Standard logic apps: Visual Studio Code):

message='Http request failed with unhandled exception of type 'InvalidOperationException' and message: 'System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.'

What it usually means: This error can appear after a Standard workflow starts running locally in Visual Studio Code with webhooks enabled. Open local.settings.json in the project root folder and set FUNCTIONS_V2_COMPATIBILITY_MODE to true.

Likely causes:
- The error can appear after the workflow starts running locally, when locally running webhooks are enabled. The docs give the fix and do not state a cause.

Fix steps that usually work:
1. Open local.settings.json in the root folder of the project.
2. Make sure the property "FUNCTIONS_V2_COMPATIBILITY_MODE": "true" is set.
3. Save the file and run the workflow again.

Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/azure-logic-apps/vscode-synchronous-operations-are-disallowed

Nothing is sent anywhere from this page. Read what the assistant suggests before you apply it.

05Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Azure Logic Apps work:Open Azure Logic Apps jobsAzure Logic Apps pay estimates