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

Cant access the existing folder through box sdk - java

New post

Comments

3 comments

  • mwiller

     I have a couple questions that will help diagnose the problem you're seeing.  First, what sort of error are you getting when you try to add the collaborator to a folder that you didn't create through the SDK?  Second, how are you authenticating with Box — the Developer Token from the Box Developer Console, app auth using a JWT, or something else?

    0
    Comment actions Permalink
  • muthuraj91

    Hi MWILLER,

     

    Thanks for the response.

    Please find below the answers

    1) I am facing the below error

    Exception in thread "main" com.box.sdk.BoxAPIException: The API returned an error code: 404
    {"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"item","message":"Invalid value 'd_4***phone number removed for privacy***'. 'item' with value 'd_4***phone number removed for privacy***' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Not Found","request_id":"towy0dfp5ci4rcof"}

     

    2) I am authenticating using JWT.

     

    Please let me know for any clarifications.

     

    Thanks againg

    0
    Comment actions Permalink
  • mwiller

     I suspect you may be having the same problem as someone in another thread — the user you're acting as when you authenticate via JWT is actually a totally separate user from your personal account that you view through the web UI.  If you want to share content between the two accounts, you'll need to create a folder they can both access — there are some instructions for how to do that in the thread I linked above!  Can you give that a try and let me know if it works for you?

    0
    Comment actions Permalink

Please sign in to leave a comment.