May-14-2023, 11:26 PM
It's saying that the response it received couldn't be decoded as JSON. It could be a simple HTML message saying that the key isn't matching or similar.
Instead of invoking the .json() method on the response, take a look at the .content attribute. What does it say?
Instead of invoking the .json() method on the response, take a look at the .content attribute. What does it say?