HTTP 500 error code returned from APIs

Hi,

This is about graphQl APIs which is returning HTTP 500 error when invalid or non-existing ID is passed in the query.
For E.g.

mutation { archive_item (item_id: 123) { id }}

Here item_id is non-existing and it returns me below 500 error.

{"error_message":"Internal server error","status_code":500}

This is not same for all APIs.

For retrieve groups if I provide invalid ID it return me empty array
Query:

query { boards (ids: 123) { groups (ids: topics){ id title color position deleted items {id}}}}

Result:

{
    "data": {
        "boards": []
    },
    "account_id": 11771408
}

Is it possible to have consistent response in all the cases.

Hello @Yash!

Thank you for that feedback :slightly_smiling_face:

I will share it with our team so that it can be reviewed.

Cheers,
Matias

Tips to fix-
Refresh the page. This might seem obvious, but if it’s a temporary loading issue, you might find success if you refresh the page.
Come back later.
Delete your browser’s cookies.

Regards,
Rachel Gomez

Thanks for your input, @RachelGomez161999

Hi @Yash,
The issue you described should now be resolved!

Thanks for you input, and if encounter anything similar, we would love to hear about it as well :slight_smile: