-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Info needed: BadResource: Bad resource ID #89
Comments
@keroxp I hope you don't mind me giving input... @reselbob Can you provide the exact code you used? How you are running/using it? I assume the above is pseudo-code as well as it isn't valid code. Usually I see |
Here is the code: https://github.com/reselbob/denodemo/blob/master/pubbersubber/types/providers/redis.ts Here is the project it runs within: https://github.com/reselbob/denodemo/tree/master/pubbersubber Here is the test: https://github.com/reselbob/denodemo/blob/master/pubbersubber/tests/connection_test.ts , starting at line 63: You need to have rabbitmq and redis running. I've put this all in the test script found here: https://github.com/reselbob/denodemo/blob/master/pubbersubber/tests/run_tests Thanks for your attention. Any help will be appreciated a lot! If the error is due some bad programming on my part, which it very well might be, please forgive me. |
@reselbob Doesn't seem like any of those links work? |
Sorry, the repo was private. Now it's not. |
No problem! Do you have the error stack it displays too? |
|
@reselbob @ebebbington |
Steps to reproduceI have a file named import { connect } from "https://deno.land/x/redis@v0.10.2/redis.ts";
const redis = await connect({ hostname: "localhost" });
const sub = await redis.subscribe("test");
(async () => {
for await (const { channel, message } of sub.receive()) {
console.log("channel: " + channel);
console.log("message: " + message);
}
})();
redis.close(); When running the
Environment
|
@reselbob Hi! This problem has been fixed at v0.10.3. Please update to it. @ebebbington Thanks for your help! It really helps us. |
@uki00a Shame I didn't have the time to help out more! |
I am happy I was able to help. Deno is important as is being able to use Redis with it! Thanks for your attention. |
Hi:
I run this code and it does indeed consume and report published messages.
But, I get an error
BadResource: Bad resource ID
.Any idea what this means. I will very much appreciate the help.
Thanks in advance.
The text was updated successfully, but these errors were encountered: