Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

VITO Backend -- OpenEo Api Error: [401] TokenExchangeFailure #725

Closed eswan-star closed 3 months ago

eswan-star commented 4 months ago

Hi there.

I'm new to OpenEO and am working with the code provided on the ReadMe for the simple example. I'm running the code as is, signed up for an account and am logged in to both https://terrascope.be/ and https://portal.terrascope.be/. I am able to authenticate just fine but when I go to run the last line of code, cube.download("ndvi-max.tiff"), I get an OpenEoApiError: [401] TokenExchangeFailure: Authentication failed. Please login on our marketplace web https://portal.terrascope.be/ first, and then try authenticate again.

I make sure I am logged in and try again and I keep getting the same error. On the openEO Documentation for Error Handling, it says 401 Unauthorized: The client did not provide any authorization details (usually using the Authorization header), but authorization is required for this request to be processed.

I'm wondering how to proceed for this example? I also tried a few different backends and their different versions with no luck. Any help would be appreciated!

Thanks. -Elaine

Pratichhya commented 3 months ago

@ElaineSwanny, could you please try to log in to https://portal.terrascope.be/ using EduGAIN and social logins and re-execute the process?

soxofaan commented 3 months ago

Note that is not an issue in the openeo python client itself, but with the Terrascope backend and its credit check system.

While also not ideal, I think it's better to move this ticket under openeo-geopyspark-driver

Pratichhya commented 3 months ago

Also, I reached out to the user. The issue was said to have been resolved. @ElaineSwanny, please correct me if I am wrong.

eswan-star commented 3 months ago

Hi @Pratichhya Yes, it is working for me now.