Why does this code is usually caused by an invalid request error keep happening? or How to fix 'this

18 Replies, 1751 Views

Man, that error is the bane of my existence.

One thing that helped me: validating the request *right before* sending it. Use a tool like JSONLint for your payloads, and maybe even a header checker (some IDEs have plugins for this).

Also, is the API RESTful? Sometimes trailing slashes or wrong HTTP methods trigger this code is usually caused by an invalid request.

Messages In This Thread



Users browsing this thread: 1 Guest(s)