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]