I started getting this error a few hours ago when trying to deploy to vercel from Github action
Deploying [my-project-name]
Uploading [--------------------] (0.0B/33MB)
Uploading [=====---------------] (8.3MB/33MB)
Uploading [==========----------] (16.5MB/33MB)
Uploading [===============-----] (24.8MB/33MB)
Error: FetchError: invalid json response body at https://api.vercel.com/v2/files?teamId=*** reason: Unexpected token '<', "<html>
<h"... is not valid JSON
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: AbortError: The user aborted a request.
at uploadList.<computed>.retries (/usr/local/lib/node_modules/vercel/dist/index.js:50077:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: An unexpected error occurred!
Error: AbortError: The user aborted a request.
at uploadList.<computed>.retries (/usr/local/lib/node_modules/vercel/dist/index.js:50077:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Process completed with exit code 1.
Seems like the file upload is disrupted after a while, and this error is thrown
I changed the access token with no effect, and I’m getting the same error when trying to deploy locally.
The “team” is just me and I have not changed any settings between the last successful deployment few hours ago, and now.