Y400 [errorMessage] => Nul..." /> Y400 [errorMessage] => Nul..." /> Y400 [errorMessage] => Nul..."/>

Yodlee Y400 error when trying to add providerAccount works on Windows but rarely on Linux

261 views Asked by At

So I ended up trying to debug this issue from the command line by using curl. On my linux machine I receive "[errorCode] => Y400 [errorMessage] => Null argument specified".

This is the curl command I'm using, but with the missing information filled in:

curl -v --insecure -i -H "Authorization: {cobSession=cobSessionHere,userSession=userSessionHere}" -H "Content-Type: application/json" --data "{\"field\":[{\"id\":loginFieldId,\"value\":\"login\"},{\"id\":passwordFieldId,\"value\":\"password\"}]}" https://developer.api.yodlee.com/ysl/restserver/v1/providerAccounts?providerId=providerId

On my windows machine, the api call executes successfully. Same version of curl, same build, same verbose output. The only difference being that on the linux machine, the server sends me "400 Bad Request" then the error message I mentioned above.

Very rarely, sometimes it will work on the linux machine.

Is there any sort of curl configuration I can check or maybe a network policy in place that I could change to potentially fix this issue? Or is this most likely on Yodlee's end?

1

There are 1 answers

0
Krithik On

It looks like you have not passed the HTTP method- POST, that is why you have got bad request

Please use the sample curl command for adding an account-

curl -X POST -H "Authorization: cobSession=sessionValuehere,userSession=sessionValue" -H "Content-Type: application/json" -d '{
  "loginForm": {
    "row": [{
      "field": [{
        "id": 65499,
        "value": "sampleapp.site16441.2"
       }]
     },
     {
      "field": [{
        "id": 65500,
        "value": "site16441.2"
       }]
     }]
  }
}' "https://developer.api.yodlee.com/ysl/restserver/v1/providers/providerAccounts?providerId=16441"

Hope this helps.

Regards,

Krithik