How to debug when no response comes back from API

Hi,
I can’t understand why my code is working on my staging site / staging monday board but not in the live environment. The request is exactly the same format for both environments
but live is not processing the request.

The API is not returning ANYTHING - usually it would send me back a syntax error or some reason the request didn’t work…

So HOW do you debug an API query if the Monday API returns nothing to the caller???

EXAMPLE (working)
[28-Nov-2023 03:48:09 UTC] {“query”:“mutation {addMembership : create_subitem (parent_item_id:5559740500, item_name: "Membership Renewal - Stripe", column_values: "{\"item\" : \"Member Advantage\",\"amount\" : \"20\",\"date0\" : \"2023-11-28\",\"order_name\" : \"blep blep\",\"email\" : {\"email\" : \"blep@blep.com\" , \"text\" : \"blep@blep.com\" }}") { id } }”}
[28-Nov-2023 03:48:09 UTC] Response----->
[28-Nov-2023 03:48:09 UTC] Array
(
[data] => Array
(
[addMembership] => Array
(
[id] => 5580876159
)

    )

[account_id] => 9916269

)

NOT WORKING:
{“query”:“mutation {addMembership : create_subitem (parent_item_id:4663990084, item_name: "Membership Renewal Stripe", column_values: "{\"item\" : \"Member Advantage\",\"amount\" : \"0.5\",\"date0\" : \"2023-11-28\",\"order_name\" : \"Gareth Testing\",\"email\" : {\"email\" : \"utm@mail.com\" , \"text\" : \"utm@mail.com\" }}") { id } }”}
[28-Nov-2023 04:19:24 UTC] Response----->
[28-Nov-2023 04:19:24 UTC]

Hello there @geeemaaan,

If you are using the exact same mutation and it is working on one environment and in the other one you don’t event get a response, your mutation might not be reaching our server at all. Our server will always respond (with a success or an error).

If you can’t find what is going on, please send us an email to appsupport@monday.com and we will try to figure it out with you :smile:

Cheers,
Matias

1 Like