API REST : error 401100
Hi,
I´ve tried connect to Rainbow sandbox thru a python application, but the following error is presented:
"errorCode":401,"errorMsg":"Unauthorized","errorDetails":"Request has something wrong with basic authentication header","errorDetailsCode":401100}'
With this header :
{'Accept': 'application/json', 'Authorization': 'Basic marc.droniou@YYYYY.net:MyPassword', 'x-rainbow-app-auth': 'Basic 5e64e1a....1edbe8bd447:76ebdc105140....38306c317d283f1dd5a9dd4bcf5c8b4b5976cf'}
Any idea or tip ?
Thanks !
-
Hello,
Your header seems to be wrong.
You have got the code of the header generation for the connection with the Rainbow Node SDK : https://github.com/Rainbow-CPaaS/Rainbow-Node-SDK/blob/master/src/lib/connection/GenericRESTService.ts in the method getLoginHeader() . With auth parameter equals to :
this.authRest = btoa(this.credentials.login + ":" + this.credentials.password);
Vincent.
Please sign in to leave a comment.
Comments
2 comments