nhcb / entsog-py

Python client for the ENTSOG API
MIT License
18 stars 4 forks source link

Fix 404 errors with API update #18

Closed brunosanches closed 3 months ago

brunosanches commented 4 months ago

The recent changes to the ENTSOG API have impacted how certain queries return results. I've identified two main issues:

Operational Data Queries with Offset:

Previously, querying operational data with an offset would return a 500 error, as expected. Now, it returns a 404 error, which broke the way the library handles end of data. You can reproduce this issue using this URL.

Disabled hasData Parameter for Operator Point Directions:

The hasData parameter has been disabled when querying for Operator Point Directions, and setting this parameter now results in a 404 error. You can reproduce this issue using this URL.

Changes Made

This pull request addresses issue #17 with the following changes:

These changes ensure the library correctly handles the new API behavior and prevents errors during data retrieval.

nhcb commented 3 months ago

Thanks, apologies for delaying on this merge for so long.