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

No writer can handle the request with "Accept: application/json;odata.metadata=minimal" #213

Open
jochendaum opened this issue Nov 30, 2018 · 1 comment
Assignees

Comments

@jochendaum
Copy link

This header appears to drive what writer is used when connecting Odata from Excel.

From looking over the available json writers, JsonLightODataWriter should be used, but can't match odata.metadata in https://github.com/Algo-Web/POData/blob/master/src/POData/Writers/Json/JsonLightODataWriter.php#L73

Backtracking from this, it seems this is removed by this line:
https://github.com/Algo-Web/POData/blob/master/src/POData/Writers/ResponseWriter.php#L74
, I'm not sure why. Just commenting this line doesn't fix the problem either though.

@CyberiaResurrection
Copy link
Collaborator

@jochendaum , I know it's been a while, but can you try current repo HEAD and see if pain persists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@jochendaum @CyberiaResurrection and others