Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@vercel/blob] – BlobUnknownError and how to catch it? #487

Closed
mfts opened this issue Nov 10, 2023 · 4 comments
Closed

[@vercel/blob] – BlobUnknownError and how to catch it? #487

mfts opened this issue Nov 10, 2023 · 4 comments

Comments

@mfts
Copy link

mfts commented Nov 10, 2023

Hi, I'm getting unknown errors from vercel/blob randomly. I cannot pinpoint why that error occurs.

Error: BlobUnknownError: Vercel Blob: Unknown error, please visit https://vercel.com/help
    at validateBlobApiResponse (/Users/mfts/dev/mfts/papermark/node_modules/@vercel/blob/dist/chunk-L5YSJHMQ.cjs:47:13)
    at put (/Users/mfts/dev/mfts/papermark/node_modules/@vercel/blob/dist/chunk-L5YSJHMQ.cjs:140:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async __WEBPACK_DEFAULT_EXPORT__ (webpack-internal:///(api)/./pages/api/mupdf/convert-page.ts:46:22)

It's happening in this file:

  • in L27: fetch the blob from blob url and convert to arrayBuffer
  • in L40: upload a new file to blob

My suspicion is that the put in L40 fails somehow.

Would appreciate your help to better understand how to prevent/catch this error.

@vvo
Copy link
Member

vvo commented Nov 10, 2023

@mfts Would you be open to creating a small reproduction repository that would contain everything for us to run it? That would be awesome.

@mfts
Copy link
Author

mfts commented Nov 10, 2023

@vvo I'll try to get to it over the weekend. But it's not a deterministic error. Sometimes the same file doesn't work the first time and then works the second time or vice versa.

@luismeyer
Copy link
Member

hey @mfts,
it's been a while since you opened this issue. Are you still seeing random errors on put requests?
We just released @vercel/blob@0.19.0 which adds automatic retries for all blob API requests. This could solve your issue, because it was likely caused by internal request problems to our upstream provider.

It would be great if you could let us know if the issue still persists

@mfts
Copy link
Author

mfts commented Jan 18, 2024

Sorry for sleeping on this issue. I have actually not experienced this issue recently. Thanks for following up with a new blob release.

closing this issue

@mfts mfts closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants