Kommo Bad Request Problem

I use a webhook and according to this webhook I want to change the actual status of lead to old status back. I use Kommo Update Lead module and put everything right, the status id should be integer and it is, but keep on sending me 400 Bad Request Error.

Please help me.


If you have the Make DevTool Chrome extension installed, you should be able to view the request and response headers and body from each module when you manually run the scenario.

From the Help Center article about the Make DevTool:

Make DevTool allows you to debug your Make scenarios in a completely new way. It adds an extra pane to the Chrome Developer Tools. Using this new debugger pane, you’re able to check all the manual runs of your scenario, review all the performed operations and see the details of every API call performed. It also brings a whole bunch of new opportunities for Apps development. You’re able to check every call that your app has performed. Thanks to this extension, you can easily debug your scenario, see which module, operation, even which single response causes the error, and then get your scenario back on track. Try it out and let your scenarios shine!

For more information on how to install and use this, see https://www.make.com/en/help/scenarios/integromat-devtool

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Yes but unfortunately the request and response headers and also body wont say anything.


{
“validation-errors”: [
{
“request_id”: “0”,
“errors”: [
{
“code”: “InvalidType”,
“path”: “id”,
“detail”: “This value should be of type int.”
},
{
“code”: “InvalidType”,
“path”: “status_id”,
“detail”: “This value should be of type int.”
},
{
“code”: “NotSupportedChoice”,
“path”: “status_id”,
“detail”: “The value you selected is not a valid choice.”
}
]
}
],
“title”: “Bad Request”,
“type”: “400 Bad Request - HTTP Status Code Glossary - WebFX”,
“status”: 400,
“detail”: “Request validation failed”
}

Try wrapping the variables with the parseNumber function.