Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems logging in on openeo.cloud #128

Closed
edzer opened this issue Aug 16, 2022 · 2 comments · Fixed by #129
Closed

problems logging in on openeo.cloud #128

edzer opened this issue Aug 16, 2022 · 2 comments · Fixed by #129

Comments

@edzer
Copy link
Member

edzer commented Aug 16, 2022

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
Copy link
Member

m-mohr commented Aug 18, 2022

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
Copy link
Member

m-mohr commented Aug 18, 2022

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...

@m-mohr m-mohr linked a pull request Aug 18, 2022 that will close this issue
flahn added a commit that referenced this issue Aug 18, 2022
Fix problems when authentication provider is missing #128
@flahn flahn closed this as completed Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants