Open-EO / openeo-r-client

R client package for working with openEO backends
https://open-eo.github.io/openeo-r-client
Apache License 2.0
61 stars 17 forks source link

problems logging in on openeo.cloud #128

Closed edzer closed 2 years ago

edzer commented 2 years ago

I get pretty consistently the message

subscript out of bounds

after trying to login by

library(openeo)
con = openeo::connect("https://openeo.cloud")
login()

and later on authentication errors. I'm not sure whether this is a problem with this client, but the error (?) message is not helpful. Any ideas?

m-mohr commented 2 years ago

There was an issue recently on openeo.cloud where no authentication provider was exposed. I assume that's the error and the R client had an issue with getting an empty list. It should work again, right? So I'd assume the only bug here is to give a better error message or handle it differently if no authentication provider is available.

m-mohr commented 2 years ago

I assume this part in login is the issue:

            providers = list_oidc_providers()
            provider = providers[[1]]
            if (is_null(provider)) {

We should probably check the length of providers and if it's 0, give a message that the user is required to specify a provider. Otherwise, handle it as usual...