Hitting endpoint from postman has different results than doing it programatically

Hi, so I’m writing some code that hits the dwolla root, gets my account, then gets the funding sources to pick one to transfer money from.

The accounts endpoint successfully gives me a funding sources URL that looks something like: https://api-sandbox.dwolla.com/https://api-sandbox.dwolla.com/accounts/${id}/funding-sources. I can then with the right Authorization, Content-Type, and Accept headers make a request to this endpoint with postman and I can see all my banks listed, but the problem is when I do the exact same GET request with the same headers via Elixir’s HTTPoison, Dwolla responds with a 404. Any ideas or tips as to what I could be doing wrong?

Hi @Gray , it looks like when you’re doing this through code vs postman that you’re appending the full request URL to the base URL. Here’s what I’m seeing url=https://api-sandbox.dwolla.com/https://api-sandbox.dwolla.com/accounts/6bb06f76-5f4a-4d89-aded-d8ac38ea8af7/funding-sources. Hope this helps, let us know if you have any follow up questions!

1 Like

Yup that was exactly it, forgot HTTPoison can set a base endpoint URL…

Thank you!

1 Like