Yodlee REST API /authenticate/login returns 415 error

天大地大妈咪最大 提交于 2019-12-12 02:04:27

问题


I have created a Yodlee developer account and with the sample provided i am able to do a coblogin ... however if I now do a user login it gives a 415 error.

I am referencing this info: https://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference/login

This is the rest data i am sending to /authenticate/login I am doing a POST and even sent in the header the application/x-www-form-urlencoded

Array ( [cobSessionToken] => 08062013_0:70f264b74e053e595c3044e554aab5bda7c5d83be1a085f32dc1cd4c48b372dc2201a826f720d9821cf30d6966cc6eb05e7e02f83da19e60e38e21fbc9d59134 [login] => sbMemnathaniel.j1 [password] => sbMemnathaniel.j1#123 )

This account works on the Test Drive.


回答1:


After much comparing the codes, i've found the culprit to the 415 error code. There are special characters that are invisible to the editor. I've caught the special chars that crept into my uRl by outputting all text sent for post into the browser.

These were the unwelcome chars ​

So i have to cut the line of code and retype into the editor to clean up the invisible chars.




回答2:


415 is also triggered if you're not on the right IP address.



来源:https://stackoverflow.com/questions/27579370/yodlee-rest-api-authenticate-login-returns-415-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!