-
Notifications
You must be signed in to change notification settings - Fork 26
emulator raises "GET" ... "Invalid request, unable to process." on first function call #130
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
Comments
Hello @ekalosak. Could you provide a minimal reproducible example as well as your python version and contents of your |
It's probably the healthcheck. To deal with it, I just put this in my https functions:
If it's not that, print |
@ekalosak Sorry if I misunderstood the issue, but does #134 fix this issue? Seems unrelated to me. If indeed the issue is this extra GET request triggering the warning log with the |
@exaby73 That strikes me as correct. The next line above in the stack trace is:
While I believe you are quite right that #134 will not fix the reported error, I believe the fix is something quite similar. The offending line is in the same util.py. minimal reproducible example
expected result
Notice that string coercion fails for tuples. So that's an easy fix of course, just extract the string value from the 1-tuple Regarding the GET request - as berengamble says above that seems likely to be a desirable health check. The desired behavior, I imagine, aught not to be to remove the health check but instead to fix the error in the utility that logs such requests. |
Fix: #138 |
Fixed by merge of #138 . |
This error pops up every time I call a function after starting the emulators.
I'm using an
@https_fn.on_call
and calling it withcurl -X POST
so theGET
in there is a bit confusing. Moreover, this just shows up - it doesn't degrade functionality much aside from potentially delaying the cold-start.The functions work just fine... but this long stack trace on a cold-start is troubling.
The text was updated successfully, but these errors were encountered: