-
Notifications
You must be signed in to change notification settings - Fork 12
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
Generated code doesn't work for Firestore #17
Comments
For context, the code was generated with: ./generate.py --apis=firestore:v1 |
I will try to take a look soon. In the meantime, you're welcome to try it out yourself -- but I understand if it's not an option, the python code can be a bit complex :) |
Sorry for forgetting so long about this - is this still an issue for you, or have you found a workaround? |
Hey thanks for picking this up again :) I haven't tested but I guess the issue must still be there? Given there has been no code update since the issue was created. I have been using a workaround: modifying the generated code to not do the |
Got it - I was asking in case you'd given up on this code and rolled something yourself :) I guess a quick fix is to attempt encoding anything but the slash characters; I am also not sure why it doesn't work in the first place, as I was under the impression that url-encoded characters should be decoded (but I guess Google takes some parameters literally). The hope would be that this doesn't break another API which can't deal with unencoded slashes in the wrong place :-] |
The Firestore API requires building request URLs in the format of
v1/{parent}/databases
, whereparent
takes the form ofprojects/{project_id}
.The code generated by this generator URL-encodes this
parent
param like so:Therefore, the request path becomes:
whereas it should be:
This mis-handling of URL is causing 404 errors.
The text was updated successfully, but these errors were encountered: