我正在测试回答“bofa”三个问题的用户流程。我正在尝试模拟一个用户,该用户在通过 Plaid 传递给他们的问题中给出了错误的答案。
我的原始帖子就像
"POST /connect/step?client_id=blah&secret=blah&mfa=1again&access_token=XYZ&type=bofa&options[webhook]=http%3A%2F%2Fx.y.zom%2Fplaid_webhook%2Fantennas HTTP/1.1\r\nConnection: close\r\nHost: tartan.plaid.com\r\nContent-Length: 0\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n"
请注意我的错误答案(“1again”而不是“again”),但也请注意访问令牌(“XYZ”)的存在,这是正确的。
这是回应
-> "HTTP/1.1 400 Bad Request\r\n"
-> "Content-Type: application/json; charset=utf-8\r\n"
-> "Date: Wed, 19 Mar 2014 20:20:20 GMT\r\n"
-> "X-Powered-By: Express\r\n"
-> "Content-Length: 144\r\n"
-> "Connection: Close\r\n"
-> "\r\n"
reading 144 bytes...
-> "{\"code\":1000,\"message\":\"access_token missing\",\"resolve\":\"You need to include the access_token that you received from the original submit call.\"}"