The API package 'remote_socket' or call 'Resolve()' was not found - GAE Java

后端 未结 3 648
失恋的感觉
失恋的感觉 2021-01-28 08:03

I\'m trying to call a Google Service in a GAE application hosted in GAE cloud:

private String doPost(String URL) throws ClientProtocolException, IOException {
           


        
3条回答
  •  自闭症患者
    2021-01-28 08:55

    API package 'remote_socket' or call 'Resolve()' was not found means that InetAddress has been requested to do a name resolution and the undelying API (remote_socket.Resolve) was not found.

    The remote_socket API is enabled as part of the trusted tester program for sockets.

    Anyhow, your issue is that we don't yet support the resolution of IP addresses (other than localhost etc) in the app engine runtime.

    The recommendation to using the urlfetch api directly is one work-around.

提交回复
热议问题