-
Notifications
You must be signed in to change notification settings - Fork 88
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
404 using entity name as path when url is provided #246
Comments
Hi @setop I am not seeing in all your code examples (be it odata or direct requests) anything covering "Resource Path" part of odata URL, see https://www.odata.org/documentation/odata-version-2-0/uri-conventions/ for details. Just the service root itself.
Could you please provide $metadata document of the service - 'https://REDACTED/odata_service.svc/$metadata' ? You can redact all URLs there, but just the structure of entities, entitysets, entitytypes. |
I have a OData provider that retuns entities in the form of (EntityID, Url).
When I try with pyodata:
I get a 404 :
pyodata.exceptions.HttpError: HTTP GET for Entity Set MyOData failed with status code 404
It seems pyodata is trying to use the entity name property as a path (
client.entity_sets.MyOData.get_entities().get_path() # => 'MyOData'
) instead of the url property.When I do it manually with requests :
is works.
What do I missed ?
The text was updated successfully, but these errors were encountered: