Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oData Handler] Empty response e.g. when updating an entity leads to an error #3771

Open
chrisweirich opened this issue Mar 28, 2022 · 0 comments

Comments

@chrisweirich
Copy link

A response from an odata service without content seems to be normal for some types of requests (update, delete, ...). But the handler throws an error in case of "update" - maybe on more occasions.

Suggestion
https://github.com/Urigo/graphql-mesh/blob/master/packages/handlers/odata/src/index.ts#L1505

// Accept empty response
if (responseText === '') return;

return handleResponseText(responseText, urlString, info);
@theguild-bot theguild-bot mentioned this issue Aug 11, 2022
@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
This was referenced Apr 30, 2024
This was referenced May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant