Getting 500 Internal error in BOX API

新規投稿

コメント

3件のコメント

  • LoCortes

    Hello ,

     

    could you give us more details please? 🙂 

     

    Which kind of transaction were you doing? Were you uploading a document? A folder? downloading a document?

     

    Have you tried to execute the same URL from a tool like postmann or a curl command?

     

    Regards

    0
    コメントアクション パーマリンク
  • iimimimi

    Hi  ,thanks for reply.

     

    I tried Create Collaboration API to make specified folder co-editable.
    https://developer.box.com/reference#add-a-collaboration

     

    >Have you tried to execute the same URL from a tool like postmann or a curl command?

    Yes, I tried curl like this.

    curl https://api.box.com/2.0/collaborations \
    -H "Authorization: Bearer **************************" \
    -d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID", "type": "user" }, "role": "editor"}' \
    -X POST

    And Questetra, I requested like this.

     

    URL : https://api.box.com/2.0/collaborations
    Header : OAuth2.0
    Method : POST
    request body(content-type = application/json) : '{"item": { "id": "*************", "type": "folder"}, "accessible_by": { "login": "*************************" }, "role": "editor"}'

     

    0
    コメントアクション パーマリンク
  • LoCortes

    Hello ,

     

    I have tried it with restlet (similar to postmann) with this body:

     

    {"item": { "id": "${"FOLDER_ID"}", "type": "folder"}, "accessible_by": {"id": "${"USER_ID"}", "type": "user"}, "role": "Previewer"}

     

    And it worked fine for me.

     

    Could you share the message as you are sending it?

     

    The error may come for a message that it is not correct or... maybe something related to some configuration at folder level where invites are not allowed.

     

    Regards,

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。