Some code we run, like getting job listing with status “in_progress”, works well from a local testing environment, and it doesn’t work from our development server that has heavy testing activities. The error produced is “Invalid response received from Authorization Server. Expected JSON.”
We can’t take the go live decision with this error, especially that it is not clear what does that mean? Could you please explain it to me?
Here is what we reached so far. We use the recommended php library/package and we found the error in it. like the attached screenshot. The library auth correctly and returns 200 sometimes and sometimes it returns response 403 (forbidden). And each requests it sends the client id and client secret to authenticate with unstable responses 200 or 403
Also, now the sandbox dashboard doesn’t login, I see a gray screen after putting the credentials. This is also weird, and I don’t know if it is related. And still our local server works well, however the development server is the one that has this issue, which is so weird.
It is confusing and we don’t know what is the reason. Is it because of the sandbox testing, or this can really occur in production environment?
ps. we don’t use caching for the token for many reasons. So we need to know why our current implementation has unstable results?
I just tested and the dashboard (in sandbox and prod) is loading correctly. If it doesn’t for you, can you (with Google chrome) open the “Inspector” and click on the network tab to see if any request is returning an error?
I would like to see if our servers returned an error or not that could cause this “Invalid response…”. The fact you are not caching the token, should have no impact. Can you please send a direct private message with your IP address (so that we can find your logs), and also an example payload you used to create a job? With that, we’ll be able to find logs with errors.
We have rolled-back a change that had an impact on the rate-limiting of the requests coming from your IP. This is why the Dashboard and API were failing for you.
We do our best to keep the platform as available as possible, but like any other Tech company, from time to time we face issues that affect our clients.
Also, we try to be as reactive as possible, so if you ever encounter any issue, please let us know and we will do our best to get it addressed immediately.