Waleed Rafique
Waleed Rafique

Reputation: 11

Google App engine Not allow thrid party API calling

I successfully deployed my project to Google App Engine, and it is working fine. When I'm trying to call some third-party API in our GET/POST method, they will not allow me to call it, and they return the error which is java.net.UnknownHostException. but sometine they call it but most of them they return the error so I was thinking maybe there are some errors in third party API calling. but it's working fine on my local server.

Upvotes: 0

Views: 65

Answers (1)

Waleed Rafique
Waleed Rafique

Reputation: 11

For the Java 8 runtime, the default value is native, which means that standard Java network classes use the standard Java HTTP(S) transport, as described in Java 8 runtime vs Java 7 behavior. This setting requires the app to have billing enabled, otherwise the following runtime errors will result from requests:

java.net.UnknownHostException
java.net.SocketTimeoutException
java.io.IOException

Upvotes: 1

Related Questions