Client experiences a timeout when requesting an access token.

Not applicable

One of our consumer is calling oauth proxy which we created in APIGEE to get the access token.

The issue here is, whenever the consumer hits the proxy url for first time they are getting the below errors,

 
Warning :Default-thread-4WARNING *** WARNING *** java.net.SocketTimeoutException: connect timed out when posting to https://somehost/v1/oauth/token.
 Info : Default-thread-4*** Script: test123 Cannot acquire token 

Provided we are giving the clientid and client secret to them to access the proxy.

"But the same is working . ie generating access token when they hit the same url for the second time without making any change in the request."

Please let me know if anyone is aware of this issue earlier.??

Thanks in Advance!!.

0 1 1,931
1 REPLY 1

Hi - it seems that the problem you are describing is occurring on the client side? Is there any error on the server? If you turn on Tracing in Apigee Edge while the client tries to connect, do you see a request arriving?

It could simply be a client-side timeout. Maybe the client has a slow DNS connection.

Can you test and check if it is at all related to OAuth tokens? Does the same timeout occur when the client connects to a test endpoint on Edge ?

Also - what kind of token flow are you performing? As part of the token issuance inside Apigee Edge, is the proxy calling out to any external service? Some password grant flows may call to an external IdP to verify user credentials. Other flows may do other things. Do you have any of that going on in your API proxy that issues tokens? If so, are THOSE things timing out?

It's hard to know the answer, but these are some things I would want to check.

Good luck!