com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network error.

box.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error when using box-java-sdk - Box

    box.com | 7 months ago
    com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network error.

    Root Cause Analysis

    1. com.box.sdk.BoxAPIException

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

      at com.box.sdk.BoxAPIRequest.writeBody()
    2. com.box.sdk
      BoxAPIConnection.getAccessToken
      1. com.box.sdk.BoxAPIRequest.writeBody(BoxAPIRequest.java:320)
      2. com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:389)
      3. com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:209)
      4. com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:184)
      5. com.box.sdk.BoxAPIConnection.refresh(BoxAPIConnection.java:464)
      6. com.box.sdk.BoxAPIConnection.getAccessToken(BoxAPIConnection.java:266)
      6 frames
    3. Unknown
      QBox.main
      1. QBox.setupBoxAPIConnection(QBox.java:71)
      2. QBox.<init>(QBox.java:45)
      3. QBox.main(QBox.java:35)
      3 frames