phillc73 / abettor

An R package for connecting to the online betting exchange Betfair, via their API-NG product, using JSON-RPC.
Other
51 stars 36 forks source link

Not able to login #70

Closed R0ndawg closed 5 months ago

R0ndawg commented 5 months ago

For some reason, I just cannot login?? betfairlightweight in python works with the same credentials (username, pwd and applicationkey), but I keep getting the error: "FAIL:INVALID_USERNAME_OR_PASSWORD" in R? Maybe it is an issue with the 2FA? Any advice?

Soccerama commented 5 months ago

I've not used 2FA before so will need to do some research. I found this article which I'm not sure answers your question. https://support.developer.betfair.com/hc/en-us/articles/115003855392-Can-I-enable-2-Step-Authentication-and-still-use-the-API-non-interactive-login-method Do you use 2FA for the API login too?

Soccerama commented 5 months ago

Also this one mentions handling special characters. This is not something that abettor so you would need to follow the instructions in the post. https://support.developer.betfair.com/hc/en-us/articles/4404075398033-Why-am-I-receiving-INVALID-USERNAME-OR-PASSWORD

R0ndawg commented 5 months ago

Thanks a lot! It was the special characters causing the issue. Yes, 2FA is used in API login as well.