Error 500 when trying to create board via API


Badge

Hi there,

I ran into a problem that a 500 response is returned to a valid request if you send it via Intellij Idea. (via Postman is ok)

{
"type": "error",
"code": "internalError",
"message": "Internal server error",
"status": 500
}

I am sending the request to “api.miro.com/v2/boards” endpoint and have this issue, but if I’m sending request to api.miro.com/v1/boards” it works fine. This is strange.

Similar problem was here.


5 replies

Userlevel 5
Badge +1

Hi @ValentinCake,

 

Could you share with us the exact requests you are executing? If it works in Postman it should work exactly the same in the IDE. There might be a difference somewhere, we just need to find it :). 

 

The more information you can share, the easier it will be for us to help you.

Badge
Request method:	POST
Request URI: https://api.miro.com/v2/boards
Proxy: <none>
Request params: <none>
Query params: <none>
Form params: <none>
Path params: <none>
Headers: Authorization=Bearer MY_TOKEN
Accept=application/json
Content-Type=application/json
Cookies: <none>
Multiparts: <none>
Body:
{
"name": "Test API",
"policy": {
"permissionsPolicy": {
"collaborationToolsStartAccess": "all_editors",
"copyAccess": "anyone",
"sharingAccess": "team_members_with_editing_rights"
},
"sharingPolicy": {
"access": "edit",
"inviteToAccountAndBoardLinkAccess": "editor",
"organizationAccess": "edit",
"teamAccess": "edit"
}
},
"description": "for testing qa_guru"
}

This is from the logs of the IDE, exact request looks like:

        CreateBoardResponse response =
given()
.filter(withCustomTemplates())
.baseUri("https://api.miro.com/v2/boards")
.header("Authorization", "Bearer MY_TOKEN")
.accept("application/json")
.contentType(ContentType.JSON)
.body(request)
.log().all()
.when()
.post()
.then()
.log().all()
.extract().as(CreateBoardResponse.class);

It's strange that everything is fine in v1 :(

Userlevel 5
Badge +1

I am able to reproduce, it seems to come from the "organizationAccess": "edit" parameter. if you change it to private it works.

 

I raised it to our engineering team and will let you know when I hear back from them.

Badge

Thank you very much, I'll be glad to hear the news :)

Badge

Another small moment, request “v2/boards/{board_id}/tags” returns "unknown" instead of "dark_green".

 

Reply