Are you using the Standard Environment? I think this happens if you are 
trying to do work for longer than the App Engine request timeout (60 
seconds), or after you have responded to the original web request. The key 
words in this error are "context expired", which means this is some sort of 
timeout. Is it possible that this happens approximately 60 seconds after 
the initial web request?

I'm not 100% sure, but only if you have a manual scaling backend can you 
have "long running" requests, and you must use runtime.RunInBackground.

https://cloud.google.com/appengine/docs/go/runtime
https://cloud.google.com/appengine/docs/go/how-requests-are-handled#Go_The_request_timer

On Tuesday, August 9, 2016 at 10:29:30 AM UTC-4, kyeongwook Ma wrote:
>
> Hi GAE support,
>
> I am a developer using the GAE with Golang and gin.
>
> I included urlfetch in the service to use a third party service (for 
> example, AWS SNS push service).
>
> The urlfetch is successful for the first few times, but when we send 30-40 
> consecutive urlfetch, it keeps on giving an error.
>
> The specific error message is:
>
> *WARNING  2016-08-09 13:29:56,592 urlfetch_stub.py:540] Stripped 
> prohibited headers from URLFetch request: ['Content-Length']*
> *ERROR: context expired before API call urlfetch/Fetch completed*
>
> *RequestError: send request failed*
> *caused by: Post https://sns.us-west-1.amazonaws.com/ 
> <https://sns.us-west-1.amazonaws.com/>: Call error 3: invalid security 
> ticket (context expired)*
>
> We also tested urlfetch with other third party services, and we still get 
> the same error messages as above.
>  
> Is there anybody that can help us with this situation?
>
> Thank you very much for your help.
>
> Best,
> Rio
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/62fd372e-aaf4-468b-90e6-15756b9ba659%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to