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

Getting 400 Error while adding Editor to a folder recently

New post

Comments

3 comments

  • Box Product Support

    Some more info: Now, When I add collaborator via UI/Console I get following error message as well.

    Collab Error Message

    0
    Comment actions Permalink
  • Box Product Support

    Adding Exception Thrown;

    com.box.sdk.BoxAPIException: The API returned an error code: 400
    	at com.box.sdk.BoxAPIResponse.(BoxAPIResponse.java:70)
    	at com.box.sdk.BoxJSONResponse.(BoxJSONResponse.java:30)
    	at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:423)
    	at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:209)
    	at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:184)
    	at com.box.sdk.BoxFolder.collaborate(BoxFolder.java:112)
    	at com.box.sdk.BoxFolder.collaborate(BoxFolder.java:94)
    0
    Comment actions Permalink
  • Box Product Support

    I ran the same code today (as one above passing email and role) and it was able to add collaborator as "Editor" again. When check on ui after the code, I do see the added email as collaborator.

    Collab Added

    I do not understand why it failed yesterday. Can someone please shed some light on this? 

     

    Thanks

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.