$metadata
endpoint fails with "An asynchronous operation is already in progress."
#1320
Labels
bug
Something isn't working
Assemblies affected
Describe the bug
Calling
$metadata
endpoint fails withSystem.InvalidOperationException An asynchronous operation is already in progress
error. Some data is returned (streamed), but the response is incomplete, the content is not consistent, varies from call to call.Stack traces are sometimes different. Some specimens:
Another is slightly different, which is not surprising as there is probably a race condition somewhere...
Reproduce steps
Happens on our large-ish solution. I was unable to reproduce the issue with a more reduced reproduction solution.
Data Model
We have 2 large EDM models:
$metadata
returns the schema without issues$metadata
fails with the error aboveI tried to try to understand why only second fails, but been unable to do so. Cannot pinpoint the failure to a specific entity or set.
Expected behavior
$metadata
endpoint allows retrieval of OData metadata.Additional context
The failure has another indirection layer - environment:
$metadata
succeeds$metadata
fails$metadata
failsAnd success/failures are consistent for each environment.
The text was updated successfully, but these errors were encountered: