- Published
- Byline
- Noam
- Filed under
- GoHighLevel Automation
Three round trips produce the message, an OAuth redirect, a webhook delivery and a payment return, and each is fixed by comparing two addresses or reading one log.
How to fix callback error: the three round trips that fail in different places
Callback error is what a screen says when a round trip did not complete. Something sent a request out and expected to be called back, and the call either never arrived, arrived at the wrong address, or arrived carrying the wrong thing. Three round trips produce the message in agency work: an OAuth authorisation, where the platform sends the user back to your redirect address with a code; a webhook, where the platform calls your address when something happens; and a payment, where the processor returns the buyer to a page you named. The diagnosis is the same in each case, in the same order: where did the request go, what did it carry, and what did the receiver answer.
First, which callback
| Where you saw it | The round trip | Typical wording | Look first at |
|---|---|---|---|
| On the consent screen, or right after pressing Allow | OAuth redirect | Redirect mismatch, invalid request, invalid state | The redirect address registered on the app against the one sent |
| In a webhook delivery log | Webhook delivery | Timed out, non-success response, retries exhausted | The receiver’s logs and how long it took to answer |
| After a payment | Processor return | Page not found, a blank page | The success address configured on the checkout |
| In a browser console | A function in page code | Something is not a function | The script itself; not a configuration problem |
The last row is the one this article does not cover: a callback in the programming sense is a piece of code, and its error is a bug in that code. The first three are configuration, and they are fixed by comparing two strings or reading one log.
OAuth: the redirect address must match exactly
When you register an application you declare the address the platform is allowed to send the user back to. When your code starts the authorisation it sends that address again in the request. The platform compares the two, and exactly is the operative word: the scheme, the host, the port, the path, a trailing slash, and any query string must all agree, character for character. The failures are always small. A registered address with a trailing slash and a sent one without. A local development address still registered while the deployed one is not. An address on the bare domain when the request went out from the www variant. Compare the two side by side, and if the app runs in more than one environment, register one address per environment rather than editing a single one back and forth.
The state value must round-trip
A well-built authorisation sends a random state value out and expects the same value back, which is what stops a forged callback from being accepted. An invalid-state error means the value that came back was not the one that went out: the session that stored it expired, the user started twice and the second start overwrote the first, or the value was never stored at all. Store it against the session before redirecting, compare on return, and accept each value once.
The code is single use and short lived
The code carried back in the callback is exchanged once for tokens and then dies. Exchanging it twice, or minutes later after a retry, fails with wording that looks like a callback problem and is really a timing one. The same single-use rule applies to refresh tokens on the platform’s second API generation, which the v2 API docs describes. If the exchange succeeds and the calls after it fail, the callback is fine and the problem is the OAuth scope you asked for or the credential type chosen when getting API access.
The certificate and the domain, before any of the above
A redirect address must be reachable over a secure connection, and the platform will not send a user to an address whose certificate does not validate. A callback that fails before any code arrives, on a domain you set up recently, is usually a certificate that never provisioned, and behind that is often a record that never resolved, which is what checking the CNAME records for a domain settles. Check that the address loads in a browser with no warning before you touch the application settings.
Webhooks: the receiver has to answer, and answer quickly
A webhook callback fails when your receiving address does not return a success response within the sender’s patience, which is measured in seconds. The common cause is a receiver that does its work before answering: it looks up a contact, writes to a sheet, calls another API, and only then replies, by which time the sender has given up, logged a failure, and scheduled a retry. The fix is structural. Answer immediately with a success code, queue the work, and process it afterwards. Then treat the retry as normal rather than exceptional: the sender will deliver the same event again, so the receiver must recognise a delivery it has already handled and do nothing, or one webhook produces three contacts. Verifying the sender on every delivery is part of the same discipline, and reading a webhook payload covers what to check and how the shape can change underneath you.
The payment return
After a purchase the processor sends the buyer to a success address. A callback error here is almost always the address itself: a page that was unpublished, a step that was moved, a domain that was changed after the checkout was built, or an address typed rather than copied. Open the success address directly in a private window; if it does not load, the return cannot either. the thank-you step is what should be at the other end, and it should be reachable without any parameters at all.
A diagnostic order
- Read the exact wording and decide which round trip it belongs to, using the table.
- Load the callback address directly in a browser. If it warns or fails, fix the domain and certificate first.
- Compare the registered address and the sent address character by character, including the trailing slash.
- For OAuth, confirm the state value is stored before the redirect and compared once on return, and that the code is exchanged exactly once.
- For a webhook, read the delivery log for the response code and the time taken; if the time is the problem, make the receiver acknowledge first and work second.
- Replay one delivery or one authorisation and watch it succeed before declaring it fixed.
- Log every callback from now on, with its timestamp and outcome, in a place outside the tool that received it; an audit trail in a sheet is enough.
Keeping it fixed
Callback errors return for one reason: something on one side changed without the other side hearing. A domain moved, a page was renamed, a certificate lapsed, a receiver was redeployed with a slower start. The habits that prevent that are small: one registered address per environment and no editing between them; a receiver that acknowledges before it works and ignores what it has already seen; a monthly check that every callback address still loads; and a log that shows the first failure on the day it happens rather than the week a client notices.
Frequently Asked Questions
What does a callback error mean?
A round trip did not complete. Something sent a request and expected to be called back at an address, and the call never arrived, went to the wrong address, or carried the wrong thing. In agency work that is an OAuth redirect, a webhook delivery or a payment return, and each is fixed by comparing two addresses or reading one log.
Why does OAuth say the redirect does not match?
The address registered on the application and the address sent in the authorisation request must agree character for character, including the scheme, host, port, path and trailing slash. Compare them side by side, and register one address per environment rather than editing one back and forth.
What is an invalid state error?
The random value sent out at the start of an authorisation did not come back unchanged. Usually the session that stored it expired, a second start overwrote the first, or it was never stored. Store it before redirecting, compare it once on return, and never accept the same value twice.
Why does my webhook callback keep timing out?
The receiver is doing its work before it answers, and the sender gives up after a few seconds. Return a success response immediately, queue the work, and process it afterwards. Then handle the retry the sender will send, so a repeated delivery does not create a duplicate record.
Can a certificate problem cause a callback error?
Yes, and it fails before any code or event arrives. A platform will not redirect a user to an address whose certificate does not validate. Load the callback address in a browser first; if it warns, fix the domain record and certificate before touching the application settings.
Why does the payment return show a blank page?
The success address configured on the checkout no longer loads: the page was unpublished, the step was moved, the domain changed, or the address was typed rather than copied. Open it directly in a private window and fix it until it loads with no parameters at all.
How do I stop callback errors coming back?
Register one address per environment and stop editing between them, make every receiver acknowledge before it works and ignore deliveries it has seen, check monthly that each callback address still loads, and log every callback with its outcome somewhere you will actually read.
We build your GoHighLevel account for you
CRM, pipelines, funnels, SMS and automation — configured for your business, not left for you to figure out.
- Setup (one-time)$850
- Ongoing (per month)$38.80
No obligation quote · reply within 1 business day
Rather set it up yourself? Start the GoHighLevel free trial
This site is independently operated and is not officially affiliated with, endorsed by, or sponsored by HighLevel LLC. The setup service is our own flat-fee work. The free-trial link is our HighLevel affiliate link: if you sign up through it, HighLevel may pay us a commission, at no extra cost to you.