-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
UrlFetchRpcHandler error #448
Comments
Interesting. Do you happen to have a full stacktrace that you're willing to share with us? |
Sorry for the delay, please:
|
Do you mind sharing the |
|
@smorodsky I wrote more tests in #457 but I still can't reproduce this. |
I made 200,000 calls google.com and did not get a single shot. The server to which real requests are responsible slower. Obviously, this increases the likelihood of failure. Errors may be missing a few hours and then go to series. If it would be helpful, I can add you to a real project. It consistently repeat this error. |
Sure - that might be helpful. It's strange though because the test cases I added should cover all failure paths. |
Excuse me, I'm an idiot. In the original code, there is another block except, and it skipped return. I have many times check it this function, but i can not understand for what reason did not notice the bug. I'm really sorry, that gave rise to worry. Thank you. |
@smorodsky don't sweat it! At least I got some shiny new tests out of it. :) |
* docs(nodejs_mono_repo): update broken links in README Source-Link: googleapis/synthtool@50db768 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978 * trigger ci Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
* docs(nodejs_mono_repo): update broken links in README Source-Link: googleapis/synthtool@50db768 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978 * trigger ci Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
* fix: replaces deprecated snippet * adds a test * revises test assert statement * fix linting * examining return values * examining more return values * examining return values more betterly * evaluating timestamps in use * evaluating timestamps in use 2 * clean up test * clean up linting
* fix: replaces deprecated snippet * adds a test * revises test assert statement * fix linting * examining return values * examining more return values * examining return values more betterly * evaluating timestamps in use * evaluating timestamps in use 2 * clean up test * clean up linting
* fix: replaces deprecated snippet * adds a test * revises test assert statement * fix linting * examining return values * examining more return values * examining return values more betterly * evaluating timestamps in use * evaluating timestamps in use 2 * clean up test * clean up linting
I used in the project slightly modifying class UrlFetchRpcHandler (file /appengine/standard/urlfetch/async/rpc.py)
Approximately once every 100,000 requests to receive an unexpected error:
UnboundLocalError: local variable 'result' referenced before assignment
It looks like the problem of garbage collection. Completely solve the problem by adding at the beginning define of the line
global result
I hope it will be useful.
The text was updated successfully, but these errors were encountered: