Can't connect to public API using PythonAnywhere

  • Hello,

    Since a couple of weeks, I started playing with the Ogame public API, locally on my computer.

    I would like to host my scripts in the cloud for now, so I decided to opt for PythonAnywhere basic account (5$/month).

    However, although everything works fine locally, when I try to run the scripts on PythonAnywhere, I get the following error:

    `simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`

    The response seems to be empty.

    When trying to get the HTTP status error using `response.raise_for_status()`, I get the following: `requests.exceptions.HTTPError: 409 Client Error: Conflict for url:`

    The 409 status code typically indicates a conflict with another resource on the server. It looks like the remote API is returning an error.

    Trying with `` and I get a 403 status: `403 Client Error: Forbidden for url:`

    Can somebody help ?