Info needed: BadResource: Bad resource ID
See original GitHub issueHi:
I run this code and it does indeed consume and report published messages.
(async function () {
try{
for await (const { channel, message } of sub.receive()) {
handler(message);
}
}catch(err){
console.log(err);
}
But, I get an error BadResource: Bad resource ID.
Any idea what this means. I will very much appreciate the help.
Thanks in advance.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Bad resource ID when awaiting a promise inside a for ... - GitHub
The error thrown is error: Uncaught BadResource: Bad resource ID . The code listens for changes in a directory and re-runs a Deno...
Read more >Using Deno.close to close resources | The JS runtimes - Medium
If we try to read after closure, a BadResource error would be thrown. Deno.close(Deno.stdin.rid); prompt('abcd'); //error: Uncaught BadResource: Bad resource ID ...
Read more >API response on bad resource id - Stack Overflow
I've got api controller with route /resource/{id} where id is required to be numeric. If request url is /resource/abc , then I'll get...
Read more >v1.7.0 - Deno
[WILDCARD]error: Uncaught (in promise) BadResource: Bad resource ID[WILDCARD]. Deno Logo. Why Deno? Develop LocallyDeploy GloballyCompare to Node.js ...
Read more >Deno - Mark Volkmann
The deno command supports many sub-commands for common tasks including running programs, starting a REPL, linting code, formatting code, displaying code ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am happy I was able to help. Deno is important as is being able to use Redis with it! Thanks for your attention.