Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Java SDK - 404 File Not Found on publicly available document

New post

Comments

1 comment

  • Kourtney

     

     

    A 404 indicates that the token you're using doesn't have access to the file you're trying to call. Keep in mind that the developer token you're using is associated with the user that's logged into the dev console when you generate it. However, if you're using a JWT app you're most likely defaulting to calling with the apps service account. You're only going to be able to successfully interact with content the user associated with your token either owns or has collaborator access to. 

     

    As for expires_at, this is the expiry time of the access token you're using. The default value is in seconds, and will always be 3600, or 1 hour.

     

    I also wanted to make a quick note that you should never share your tokens with anyone, especially in public forums like this. I have redacted it from your original message! 

     

    Best, 

    Kourtney

    Box Technical Support Engineer

     

    0
    Comment actions Permalink

Please sign in to leave a comment.