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

etn version 2.3.0 login error #324

Open
PieterjanVerhelst opened this issue Oct 4, 2024 · 3 comments
Open

etn version 2.3.0 login error #324

PieterjanVerhelst opened this issue Oct 4, 2024 · 3 comments
Labels
Milestone

Comments

@PieterjanVerhelst
Copy link
Collaborator

PieterjanVerhelst commented Oct 4, 2024

I just ran the new etn beta version on my local drive and as explained by @PietrH I had to provide my credentials after running a function. However, I still get an error when running a function, for example get_animal_projects():

> get_animal_projects()
Error: ODBC failed with error 00000 from \
             .

In call:
opencpu:::rapachehandler()

Backtrace:
    ▆
 1. └─output_handler$error(e)

When filling in my password, I did not include the " showing its a factor. Could that be the issue or would the password prompt appear again when filling in the incorrect password?

@PietrH
Copy link
Member

PietrH commented Oct 4, 2024 via email

@PieterjanVerhelst
Copy link
Collaborator Author

I tried again and added password without the "", but still got the error. When I tried Sys.setenv(pwd="*****"), it worked 👍 .

@PietrH PietrH changed the title etn version 2.3.0 error following functions etn version 2.3.0 login error Oct 17, 2024
@PietrH PietrH added the API label Oct 17, 2024
@PietrH PietrH added this to the v2.3.1 milestone Oct 17, 2024
@PietrH
Copy link
Member

PietrH commented Oct 17, 2024

There needs to be better error handling for issues with the credentials:

  • When storing credentials, check if they work (small api call?), if they don't: report and ask for credentials again
  • don't allow empty usernames "" (hitting enter too quickly)
  • offer a way to reset the credentials, currently if you store them, the only way to reset is to restart your R session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants