Skip to content

Response [403]: These days we are getting a forbidden when querying ESIOS #6

@jalvarezgom

Description

@jalvarezgom

Issue

Since a few days ago when using the library to obtain information from some indicator is failing and is returning a ‘forbidden’ as a response.

At first we thought it was a problem of the API key because until now it had been working without errors. After verifying it, the API key was working correctly and the problem seems to be in the ESIOS web service when making the request.

We have notified ESIOS about this problem too.

Fix

Currently the library uses the ‘requests’ package to make the requests as can be seen in the ‘requirements.txt’ but it does not specify the use of any version, so when using it in a venv it will always install the latest available (in this case the 2.32.3).

We have an internal library to manage ESIOS data that still works correctly unlike 'python-esios' and is also based on their REST API

The main difference between the two is that we use the version 2.31. To correct it we have tested in a test environment with ‘python-esios’ with pip install requests==2.31.0 and it has returned to work normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions