Creating a public token with force_error override fails
Closed this issue · 2 comments
karuhanga commented
https://plaid.com/docs/#custom-sandbox
Tried this;
client.Sandbox.public_token.create("ins_3", ["transactions"], dict(override_username='user_custom', override_password= dict(force_error="ITEM_LOGIN_REQUIRED")))
It fails with;
plaid.errors.InvalidRequestError: the following fields are not recognized by this endpoint: options.force_error
otherchen commented
Hey @karuhanga, the override_password
field expects a JSON string, not a dict.
{ "force_error": "ITEM_LOGIN_REQUIRED" }
karuhanga commented
My bad. Thanks!
If anyone lands on this in the future, I misunderstood the docs and this is what you should be trying to use instead.