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

400 invalid_grant error once, works fine after that

New post

Comments

3 comments

  • pengthom

    Did you ever figure out what was going on here?  how did you make it work correctly? I am having a similar problem.  

    0
    Comment actions Permalink
  • jmoldow_box

    A comment in https://github.com/cburnette/boxr/issues/30 points out that the exp claim is set to expire in 10 seconds. So if, on first run through the code, it takes more than 10 seconds to initialize everything and make the API call, it will fail.

     

    Perhaps the second call is faster because some things are already initialized at that point.

     

    Perhaps suggest to the maintainer that the timeout be increased above 10 seconds, or that it be made configurable.

    0
    Comment actions Permalink
  • pengthom

    thank you. I think I might have another problem.  But this was helpful!

    0
    Comment actions Permalink

Please sign in to leave a comment.