Skip to main content

Error 500 when trying to create board via API


Forum|alt.badge.img

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.

Was it helpful?

5 replies

Anthony Roux
Mironeer
Forum|alt.badge.img+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.


Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • May 30, 2022
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 :(


Anthony Roux
Mironeer
Forum|alt.badge.img+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.


Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • May 30, 2022

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


Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • May 31, 2022

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

 


Reply