Skip to main content
Question

Network error

  • May 21, 2025
  • 4 replies
  • 27 views

Forum|alt.badge.img

. Exception created : [com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network error.
 at com.box.sdk.BoxAPIRequest.writeBody(BoxAPIRequest.java:320)
 at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:389)
 at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:209)
 at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:184)
 at com.box.sdk.BoxDeveloperEditionAPIConnection.authenticate(BoxDeveloperEditionAPIConnection.java:245)
 at com.box.sdk.BoxDeveloperEditionAPIConnection.tryRestoreUsingAccessTokenCache(BoxDeveloperEditionAPIConnection.java:305)
 at com.box.sdk.BoxDeveloperEditionAPIConnection.getAppUserConnection(BoxDeveloperEditionAPIConnection.java:212)
 at com.edlore.box.util.EdloreBoxAPIConnection.getAppUserConnection(EdloreBoxAPIConnection.java:49)
 at com.edlore.services.DownloadService.getFile(DownloadService.java:52)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
 at

4 replies

Forum|alt.badge.img

Hi Sowjanya,

 

I am also facing same network error while uploading document to BOX. If you found any solution for this problem please let me know. 

It would be appreciated, if you provide fix for this problem.

 

Regards,

Santhosh


Forum|alt.badge.img

   I am not 100% sure why you are seeing this error. Please take a look at this StackOverflow thread, which has a few potential fixes for this issue. In addition to the fixes suggested on StackOverflow, please take a look at this thread from this forum, which might be related to this issue.


Forum|alt.badge.img

This making me horrible, I spend 6 months of time work on box finally I prepared for the box demo to show my client. Now I have two hours of time It is not working showing Network error.

 

Even I changed to Unix time stamp it is not working what I have to show to my client I am blank.


Forum|alt.badge.img

Can you please provide me,

There is a solution like setting exp time to when getting the Box accesstoken using java sdk