ecmwf / hda

API to harmonised data access for DIAS/WEkEO
Apache License 2.0
8 stars 12 forks source link

Fixed token renewal on forbidden responses #14

Closed GermanoGuerrini closed 1 year ago

GermanoGuerrini commented 2 years ago

This should finally fix the 403 status code error handling. In particular, line 411 will issue a new token request in case of forbidden access. It has been tested by forcibly letting the first request sleep for an hour, to give time for the original token to expire.