Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox webhook transfer not working #490

Closed
bradherman opened this issue Apr 2, 2024 · 1 comment
Closed

Sandbox webhook transfer not working #490

bradherman opened this issue Apr 2, 2024 · 1 comment

Comments

@bradherman
Copy link

Ruby 3.3.0
Plaid Ruby 26.0.1

response = client.sandbox_transfer_fire_webhook("https://mywebhookurl")

returns

Plaid::ApiError: Error message: the server returns an error
HTTP status code: 400
Response headers: {"server"=>"nginx", "date"=>"Tue, 02 Apr 2024 19:53:23 GMT", "content-type"=>"application/json; charset=utf-8", "content-length"=>"229", "connection"=>"keep-alive", "content-encoding"=>"gzip", "vary"=>"Accept-Encoding"}
Response body: {
  "display_message": null,
  "documentation_url": "https://plaid.com/docs/?ref=error#invalid-request-errors",
  "error_code": "INVALID_BODY",
  "error_message": "body could not be parsed as JSON",
  "error_type": "INVALID_REQUEST",
  "request_id": "wgabDyTtBh0FtsO",
  "suggested_action": null
}

Within the logs inside the Plaid dashboard, I'm seeing the following fields are not recognized by this endpoint: webhook_url

@phoenixy1
Copy link

Thanks for the report! I think the issue is that the sample code in the docs is wrong -- I'll make sure to get it updated. The correct way to call this endpoint is something like this:

    fire_webhook_request = Plaid::SandboxTransferFireWebhookRequest.new({ webhook: "https://enn0el5jdwcvp.x.pipedream.net" })
    response = client.sandbox_transfer_fire_webhook(fire_webhook_request)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants