UrlFetch requests failing with UnknownHostException

524 views
Skip to first unread message

Béla Uzonyi

unread,
Jul 19, 2017, 1:26:13 PM7/19/17
to Google App Engine
Hi,

I am experiencing an issue with my app: all UrlFetch requests have been failing with java.net.UnknownHostException for about a day now. Anybody else having the same issue?

My app runs on AppEngine Standard with Java8 enabled, although the same issue happened some month ago on Java7. That time the issue went away after a couple of hours.

Best regards,

Bela

Kenworth (Google Cloud Platform)

unread,
Jul 19, 2017, 5:27:13 PM7/19/17
to Google App Engine

Please provide more information to further investigate your issue.


1- What was the most recent change you did on the app?

2- Are you issuing the command using "gcloud" or is it from the Console UI?

3- Please send sanitized output logs and any relevant information.


Béla Uzonyi

unread,
Jul 20, 2017, 9:27:15 AM7/20/17
to Google App Engine
No changes were made recently to my app.

Maybe I provided a misleading explanation. So my app's backend is trying to make requests to some public websites on the internet, and these are failing for all hosts.

I hope this clarifies things, thank you for your feedback.

Example stacktrace:
java.net.UnknownHostException: www.infoq.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)

Antonio Antonelli

unread,
Jul 20, 2017, 6:52:25 PM7/20/17
to Google App Engine
I'm experiencing the same issue. It works on the dev server but not on the real one.

Kenworth (Google Cloud Platform)

unread,
Jul 20, 2017, 7:08:38 PM7/20/17
to Google App Engine

It seems that you are experiencing a network issue that doesn’t let you to establish a connection to the remote host. I found a similar issue on this StackOverflow post that might be helpful. In case your issue still persists I would recommend posting the question on StackOverflow or file a defect report on Public Issue Tracker. Please visit our community support page for list of StackOverflow tags [1].

 

[1] https://cloud.google.com/support/docs/stackexchange

Béla Uzonyi

unread,
Jul 21, 2017, 6:40:34 AM7/21/17
to Google App Engine
I have created an issue: https://issuetracker.google.com/issues/63916008

Thank you.
Reply all
Reply to author
Forward
0 new messages