UploadThing callback issue (status -1)

Hi, I'm having the following problem. In the audit logs I see this for every upload (isDev: false).
{
"url": "redacted",
"type": "callback",
"status": -1,
"request_id": "7d41d51c-a59e-4935-8399-12d922380d42"
}
{
"url": "redacted",
"type": "callback",
"status": -1,
"request_id": "7d41d51c-a59e-4935-8399-12d922380d42"
}
The status -1 is sent from the UT servers but I can't figure out why. Because of this my onUploadComplete doesn't trigger so the flow isn't complete so I don't add a new record in my DB for an uploaded file. The dashboard says: Callback Failed. I'm running my app on Vercel & the last debug message from UT in Vercel logs: {"message":"Sending response","logLevel":"DEBUG" ...} I have 0 issues while using the same code in development when isDev: true, when isDev = false, I have the same issue. Version I'm using of UT: 7.5.2.
6 Replies
julius
julius•6mo ago
Is url: redacted you redacting it?
jperusm
jperusm•6mo ago
I'm having the exact same issue with Astro, I followed the Astro integration guide and it used to work before
poeyer
poeyerOP•5mo ago
Yes didnt want to post my endoint here, I left the request_id for debugging purposes @julius do you need some extra debugging info or logs?
Matthew
Matthew•3mo ago
did you figure out a fix for this?
poeyer
poeyerOP•3mo ago
Nope! Still having this issue 😦
Matthew
Matthew•3mo ago
what version are you on? I have had this working in prod for ~2 years and now having this exact issue where callback is not getting triggered x-vercel-protection-bypass worked for me give that a try!

Did you find this page helpful?