Skip to main content
Question

Exception::Couldn't connect to the Box API due to a network error

  • May 21, 2025
  • 4 replies
  • 141 views

Forum|alt.badge.img

Hi Team,

I am getting below error while accessing box api using jaxrs-resteasy services in java application to upload document in box api.

 

Exception::Couldn't connect to the Box API due to a network error.

 

20**removed**:10:15,083 ERROR [default task-3] - Exception::::cause:::javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target .

Couldn't connect to the Box API due to a network error?

 I am able to generate the access and refresh token using configuration in postman.

 

{

"access_token": "xxxxxxxxxxx"

"expires_in": 4214,

"restricted_to": [],

"refresh_token": "xxxxxxxxxxxxxxxxxx",

"token_type": "bearer"

}

Please suggest the solution for this problem.

Appreciate your help.

 

Regards,

Santhosh

4 replies

Forum|alt.badge.img

Were you able to fix that issue?

 

If so, can you suggest what you did.  I am running into the same issue.


Forum|alt.badge.img

I'm facing the same problem, is there any solution?

Thanks in advance.


Forum|alt.badge.img

Do you have any security software running on the system. It could be
blocking box.api.com.


Forum|alt.badge.img

Thanks@

I'm on a working environment, and I have to work with officeScan.

In my case I can create folders, delete folders and download files from box, but I just can't upload.

So I think the security software may not be the reason.