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.
3 Replies
julius
julius4d ago
Is url: redacted you redacting it?
jperusm
jperusm4d ago
I'm having the exact same issue with Astro, I followed the Astro integration guide and it used to work before
poeyer
poeyerOP3d 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?

Did you find this page helpful?