Skip to main content
Question

Exception : connection timed out: api.box.com/185.235.236.197:443

  • May 22, 2025
  • 8 replies
  • 81 views

Forum|alt.badge.img

While we are retrieving data using box Rest-API's, getting exception(connection timed out: api.box.com/185.235.236.197:443) very frequently.

Initially we were getting 429 status code as request rate limit were exceeding, so we handled it by making less then 16 calls per second But now we are getting connection timeout exception without any status code.

We are getting below Exceptions :

Exception: 1

reactor.core.Exceptions$ErrorCallbackNotImplemented: io.netty.channel.ConnectTimeoutException: connection timed out: api.box.com/185.235.236.197:443
Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: api.box.com/185.235.236.197:443
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:261) ~[netty-transport-4.1.53.Final.jar:4.1.53.Final]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET https://api.box.com/2.0/files/732393180955/content [DefaultWebClient]

Exception: 2

io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms
at io.netty.handler.ssl.SslHandler$5.run(SslHandler.java:2069) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET https://api.box.com/2.0/files/732452862010/comments [DefaultWebClient]

Exception: 3- While downloading file content 

io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms
at io.netty.handler.ssl.SslHandler$5.run(SslHandler.java:2069) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET https://public.boxcloud.com/d/1/b1!6Z6xl84FRm_obRWjp5EDWSWV9PLXGTTPf5g-UT0GyWE1cz9lEtgcxh-....

 

We really appreciate if any one can let us know the exact cause of these exceptions , so we can handle these exceptions in proper manner.

-Vivek

 

8 replies

Forum|alt.badge.img

Hey Vivek, 

Are you still encountering this issue? If so, can you provide me with the client ID and a specific example date/time/timezone of the issue so I can take a closer look at our logs? 

Best, 

Kourtney

Box Developer Advocate


Forum|alt.badge.img

Hi Kourtney,

Thanks for your prompt response.

Yes, we are still facing this issue, Please find the bellow details as you asked.

Client-ID: 8oi6q84z0vvujrjv7guvavmijpxjxpqp

Date and time: This issue encountered multiple time Between 2020-12-02 18:55:15.215 IST   to  2020-12-02 19:04:17.636 IST

Thanks

-Vivek

 


Forum|alt.badge.img

Hmm what error message dud you get during that time? The only errors I'm seeing are 400s related to tokens. Digging further into those the error is: invalid_client: The client credentials are invalid.

 


Forum|alt.badge.img

Hi Kourtney,

It's getting fail in first time and  while we retry the same API after few seconds it works fine for us.

You seen 400s because the token get refreshed between the time frame I provided earlier. 

can you please check again for the below time frame ?

Time: between 2020-12-03 19:19:34.849  IST To   2020-12-03 19:19:49.716 IST

The message we are getting is  [id: 0x895b1e8f, L:/10.100.130.59:52699 - R:api.box.com/185.235.236.197:443] The connection observed an error

thanks,

-Vivek


Forum|alt.badge.img

Hmm so "The connection observed an error" is not an error message Box will ever return. Is it possible to get more verbose logging that might show a specific error message that is coming from Box? 


Forum|alt.badge.img

Except this , i am not getting any other message, kindly check logs of given time frame, so we can figure out exat problem.
Thanks

-vivek.


Forum|alt.badge.img

Hi Kourtney,

Do we have any update on this, we want to fix this at the earliest as we already short of time.

We really appreciate to you if you can help us on this.

 

Thanks

-Vivek


Forum|alt.badge.img

I believe the root cause of the issue is still rate limiting. I can see you're exceeding the number of API calls per second per user with user ID 13735777247 at this time.