Welcome to the new Box Support website. Check out all the details here on what’s changed.

Api connection

Answered
New post

Comments

4 comments

  • Official comment
    Kourtney

    Hello Vinoth, 

    What happens when you try to make a call to download/upload/rename/delete folder/files? Is there an error message you can share? 

    Best, 

    Kourtney 

    Comment actions Permalink
  • Vinoth Manoharan

    The error code for when I attempt to use BoxFile.getInfo() method.

    com.box.sdk.BoxAPIResponseException: The API returned an error code [404 | yl6navgjxfsndo9b.093f3435836b37f7a41644acd4b0a45cf] not_found - Not Found
    The API returned an error code [404 | yl6navgjxfsndo9b.093f3435836b37f7a41644acd4b0a45cf] not_found - Not Found

    0
    Comment actions Permalink
  • Kourtney

    You're using a JWT app, which means by default your token is associated with the applications service account. Just like within Box.com directly, you can only interact with content the user associated with your token either owns or has collaborator access to. The 404 indicates that your service account. does not have access to the  file you're trying to get information about here. Therefore, you'll either need to add the service account as a collaborator OR get a token associated with someone who already has access to the file. Hope that helps! 

    1
    Comment actions Permalink
  • Vinoth Manoharan

    Thanks it does help! You wouldn't happen to know the method to get the correct api when using a .json that has a client id within the json?

    0
    Comment actions Permalink

Please sign in to leave a comment.