# Google App Engine times out attempting to access Auth0 URL

**URL:** <https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556>\
**Category:** Get Help\
**Created:** [January 25, 2019, 3:27pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556 "2019-01-25T15:27:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![randy.milbert](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/randy.milbert/32/10413_2.png) [@randy.milbert](https://community.auth0.com/u/randy.milbert)\
**Post date:** [January 25, 2019, 3:27pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/1 "2019-01-25T15:27:59Z")

</div>

When I try to access a specific Auth0 URL ([https://ssodev.gaf.com/oauth/token](https://ssodev.gaf.com/oauth/token)) via Google App Engine standard, my servlet times out (the log shows “Process terminated because the request deadline was exceeded” after about 100 seconds). If I try to access a different Auth0 URL ([https://pushpin.auth0.com/oauth/token](https://pushpin.auth0.com/oauth/token)) my servlet does not time out. What is going on?

Interestingly, I can access both URLs in a Google Cloud Shell:

```auto
curl --request GET --url https://ssodev.gaf.com/oauth/token
curl --request GET --url https://pushpin.auth0.com/oauth/token

```

Neither of these time out.

My code is below. I started with the getting started java example ([GitHub - GoogleCloudPlatform/getting-started-java · GitHub](https://github.com/GoogleCloudPlatform/getting-started-java.git)). I only changed the HelloAppEngine.doGet method.

```auto
@WebServlet(name = "HelloAppEngine", value = "/hello")
public class HelloAppEngine extends HttpServlet {

  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {

    //String url = "http://mit.edu"; // This works
    //String url = "https://pushpin.auth0.com/oauth/token"; // This works
    String url = "https://ssodev.gaf.com/oauth/token"; // This times out

    try {
      InputStream in = new URL(url).openStream();
    }
    catch(Exception exception) { }

  }

}

```

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [February 12, 2019, 10:05pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/2 "2019-02-12T22:05:20Z")

</div>

Hi @randy.milbert,

Have you opened a ticket with Auth0 Support on this? Sounds like there may be a bug in processing custom domains (I’m assuming [ssodev.gaf.com](http://ssodev.gaf.com) is set up as a custom domain)?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 13, 2019, 4:10pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/3 "2019-02-13T16:10:42Z")

</div>

Hey there @randy.milbert!

Can you let me know if you’ve managed to get past the issue? Otherwise I’ll open a support ticket for you!

Let me know about the status!

---

<div class="post-metadata">

**Author:** ![randy.milbert](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/randy.milbert/32/10413_2.png) [@randy.milbert](https://community.auth0.com/u/randy.milbert)\
**Post date:** [February 13, 2019, 4:44pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/5 "2019-02-13T16:44:03Z")

</div>

If you could open a support ticket, that would be great. The request still times out.

Thanks,

Randy

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 13, 2019, 4:52pm UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/6 "2019-02-13T16:52:20Z")

</div>

Sure doing it right now! Someone from our developer support team will reach out to you soon!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 15, 2019, 8:57am UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/7 "2019-02-15T08:57:36Z")

</div>

The ticket has been created. Our developer support team will help you troubleshoot this! Will be great if you can also post your findings in the thread here for others in community!

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 29, 2019, 11:02am UTC](https://community.auth0.com/t/google-app-engine-times-out-attempting-to-access-auth0-url/20556/8 "2019-08-29T11:02:23Z")

</div>


