begoon
begoon2mo ago

@vercel/blob put function hangs in Deno

https://github.com/vercel/storage/issues/656 Interestingly, the same snippet works just fine in Bun and Node. Any insights?
GitHub
storage.put() is hanging in Deno · Issue #656 · vercel/storage
storage.put() is hanging in Deno. vercel-storage.js: import { put } from "@vercel/blob"; import "dotenv/config"; const { url } = await put("name", "value", {...
4 Replies
Deno AI Helper
Deno AI Helper2mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like there might be an issue specific to how the @vercel/blob package or its dependencies interact with Deno's runtime environment. Since you've mentioned that the same snippet works in Bun and Node, this could indicate that there's a compatibility issue or a difference in the runtime that's causing the put function to hang in Deno. Without seeing the actual code snippet or having more context, I can't provide a definitive solution. However, here are a few general suggestions that are not based on the Deno documentation, and I advise you to double-check the accuracy of this advice: 1. Ensure that you are using the latest version of Deno and the @vercel/blob package. 2. Check if there are any open issues or pull requests in the @vercel/blob repository that address this problem. 3. Try to isolate the problem by creating a minimal reproduction of the issue, which could help in identifying whether the problem lies with Deno or the package itself. 4. Consider reaching out to the maintainers of the @vercel/blob package for assistance, as they might have more insights into compatibility with Deno. Remember to also check the network permissions if the put function is making external requests, as Deno is secure by default and requires explicit permissions to make network requests.
marvinh.
marvinh.2mo ago
@begoon Can you file an issue for that? It's easier for us to keep track of bug reports in our issue tracker than in discord threads
begoon
begoon2mo ago
GitHub
vercel/blob storage put() function hangs in Deno · Issue #23351 · d...
Version: Deno 1.42.2 storage.put() hangs in Deno. vercel-storage.js: import { put } from "@vercel/blob"; import "dotenv/config"; const { url } = await put("name", &quo...
begoon
begoon2mo ago
Firstly I raised an issue in the vercel/blob repo assuming it is their issue, and posted a message here “just in case”.