Not using URLFetchService seems to have worked, I'm not seeing any 
SocketTimeoutExceptions anymore since I've deployed a version of my app 
that uses OkHttp to replace the URLFetchService. Of course that might be a 
coincidence but the errors that have been occurring throughout the day are 
gone now. I actually implemented the URLFetchService interface for my 
OkHttp implementation, which I'm happy to share if someone needs it too.

On Thursday, March 29, 2018 at 8:23:11 PM UTC+2, Hugo Visser wrote:
>
> I'm literally getting java.net.SocketTimeoutException, meaning that the 
> connection to the host times out. I have billing enabled so that can't be 
> the cause, but maybe it's related.
>
> I thought the error was because that particular host was having troubles, 
> but I'm seeing it on other hosts too now. I'm did a quick change to replace 
> my URLFetch calls with normal socket based http calls through OkHttp, and 
> that seems to be better, though it's to soon to really tell.
>
> I'm using Java 8, but since this is an older app it's still using the 
> URLFetchService as that was the only way to do a request in the past. I 
> don't really need it to be replaced, I just need it to work like it used to 
> and not fail at random :-)
>
> On Thursday, March 29, 2018 at 8:06:32 PM UTC+2, George (Cloud Platform 
> Support) wrote:
>>
>> Hi Hugo, 
>>
>> What type of time out exceptions do you refer to? Which errors are the 
>> most frequently encountered? You are surely not the only one facing this 
>> situation. How would you like to see URLFetch replaced? Do you use Java 7 
>> or 8? Which features described on the "Issuing HTTP(S) Requests" 
>> documentation page 
>> <https://cloud.google.com/appengine/docs/standard/java/issue-requests> 
>> do you actually use? 
>>
>

-- 
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/8fb36292-ca06-48ca-a278-2d22f9969799%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to