Open sylvainfaivre opened 11 months ago
I tried adding -d -v
options but got no more information.
Hi @sylvainfaivre - thanks for reporting. I believe I need to check HTTP response status code before attempting to decode the JSON. I'll take a look at this soon.
🐛 Bug Report
Sometimes (I don't know what triggers this), pwpush-cli aborts with this error :
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
🔬 How To Reproduce
Running with a self hosted AWS instance.
I have this code running inside a
for
loop :This code sometimes fails with the following stack trace :
This seems to be related to some kind of rate limit, as it doesn't happen if I add a
sleep
invocation in the loop.However, this behaviour differs from the one with the 403 error I posted in another issue.
Environment