NEXT_LOGIN_INVALID_LOGIN_PARAMETER: Something went wrong when logging in
Closed this issue · 1 comments
HaraldNordgren commented
Folliwing the code example for the Readme with a newly created account, I keep getting this on the client.Login()
call:
NEXT_LOGIN_INVALID_LOGIN_PARAMETER: Something went wrong when logging in.
import "io/ioutil"
var (
pemData, _ = ioutil.ReadFile("NEXTAPI_TEST_public.pem")
user = []byte("username")
pass = []byte("password")
)
The credentials work with the Python example from https://api.test.nordnet.se/projects/api/wiki/Python_example.
Pem file is from https://api.test.nordnet.se/projects/api/files.
HaraldNordgren commented
I figured it out!
The Python example uses the test API (https://api.test.nordnet.se/next), and the Readme here uses the live API.
I created a pull request to make this a bit more clear for new users and save a few hours: #9