-
Notifications
You must be signed in to change notification settings - Fork 30
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
wf_set_key results in error message #34
Comments
syntax should be: for CDS (ID based): wf_set_key(user = "2055", key = "somekey", service = "cds") for ECMWF (email based): wf_set_key(user = "test@mail.com", key = "somekey", service = "webapi") There should be any reference to an email argument. Best to use the CLI data entry approach (as it also hides copy paste items from your history): > wf_set_key(service = "cds")
Login or register to get a key
User ID / email: 2088
API key: 3 ... f
User 2088 for cds service added successfully Remember that for the CDS service you should use the user ID (a number) not your email address, while for the webapi it is your email address (rather inconsistent but outside my control). Let me know if this helps. Also, could you mention the system used? I have little access to Windows machines for testing, so results are skewed towards OSX and Linux. |
Also, beware of copying spaces " " when using keys. These sneak in and create bad credentials without being too obvious. |
Thanks, it works for the cds now, but not for webapi, I still get the same error. I am on OSX. Will try a bit further and let you know. Thanks for your prompt reply. |
In case of the webapi don't copy the quotation marks, they are ingested as part of the key if you use the command line entry. I'm not sure how the keys are generated (and I assume they will never include ") but since I'm not sure I don't kick them out by default. |
Hey, |
I'm not sure why you are locked out using the internal email. Seems that if you could login to the page you are redirected to you should be able to use the API with this account as well. Maybe the two are separated on another level. Best to ask around on your side, I've far less insight into this. |
It's fine. Thanks. I can use the account on my private email address for now. I'll check here to find out possible reasons for getting logged out with the internal email. |
Ok. Let me know if you hit other issues. I'm leaving this open and pinned as this might help others although resolved. |
I'd suggest updating the README and doc, as there you still use email for the function wf_set_key. |
Ah, that's the source of confusion! This has been fixed in the new website / readme: https://github.com/khufkens/ecmwfr |
To download from the CDS, I am running (with my personal user number and key from my profile):
However, when running:
Do you have any advice? |
You need to specify the service. The default is
|
Hi! Getting same validation error with my account with wf_get_key(user = cds_user, service = "cds"). wf_get_key(user = cds_user, service = "cds") also drops an error (Error in b_wincred_i_get(target) : Windows credential store error in 'get': Element not found). Triple checked creds - they re correct. I thought maybe there are problems with account, but manual data request on website works ok... any ideas? |
Could you provide session info please |
seems like I found the problem and its nothing to do with the package - one of my account probably was blocked, since others continue working. |
If I try to set my webapi or cds key with wf_set_key, I get the following error:
... unused argument (email = "EMAILADDRESS")
Also, if I try to manually set the key, I get the following error message:
Error in wf_set_key(service = "webapi") :
Could not validate login information.
This happens with both, webapi and cds service.
Any advice?
The text was updated successfully, but these errors were encountered: