# Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead in Azure Logic Apps: cause and fix

Source page: https://ipaaserrors.com/azure-logic-apps/vscode-synchronous-operations-are-disallowed
Platform: Azure Logic Apps · Standard logic apps: Visual Studio Code
Checked against vendor docs: 2026-11-21

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.

## Error text

```
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.'
```

## 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.

## How 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.

## Sources

- [Create Standard logic app workflows with Visual Studio Code](https://learn.microsoft.com/en-us/azure/logic-apps/create-standard-workflows-visual-studio-code)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/azure-logic-apps/vscode-synchronous-operations-are-disallowed and the vendor documentation above.
