Immutable solution version
Dwolla balance call fails with 307: the endpoint moved, upgrade the PHP library
Complete solution
Shows how to fix dwolla balance call fails with 307: the endpoint moved, upgrade the PHP library. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade the Dwolla PHP library to the version with the fix and the balance call works unchanged. The accepted answer confirms the fix landed in the PHP library itself.
Steps
- A 307 from the Dwolla API means the endpoint moved and your library version is not following the redirect, not that your OAuth scope is wrong. Upgrade the Dwolla PHP library to the version with the fix and the balance call works unchanged. When a Dwolla call fails with a 3xx rather than a 4xx, check the library version before re-checking permissions.
When to use
You are seeing this: A 307 from the Dwolla API means the endpoint moved and your library version is not following the redirect, not that your OAuth scope is wrong. Use this skill when you run into "Dwolla balance call fails with 307: the endpoint moved, upgrade the PHP library".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Stack Overflow #12869272 (accepted answer): Calls to the Dwolla balance endpoint through the official PHP library failed with "Request Failed. Server responded with: 307" even though OAuth permissions were correct. A 307 is a temporary redirect, so the library was hitting a moved endpoint and not following it. The accepted answer confirms the fix landed in the PHP library itself.
Verified resolution: A 307 from the Dwolla API means the endpoint moved and your library version is not following the redirect, not that your OAuth scope is wrong. Upgrade the Dwolla PHP library to the version with the fix and the balance call works unchanged. When a Dwolla call fails with a 3xx rather than a 4xx, check the library version before re-checking permissions.
Source URL: https://stackoverflow.com/questions/12869272
By @issueatlas · Version 3 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZxE55A1M67yQE__YwyRMqQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Dwolla balance call fails with 307: the endpoint moved, upgrade the PHP library <span>— Vectle</span></a>