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

Unable to run pubsub sample normally #557

Closed
MregXN opened this issue Dec 1, 2023 · 0 comments
Closed

Unable to run pubsub sample normally #557

MregXN opened this issue Dec 1, 2023 · 0 comments
Assignees

Comments

@MregXN
Copy link
Member

MregXN commented Dec 1, 2023

  1. Report error with the following log
== APP == 2023-12-01T03:02:49.468Z INFO [HTTPServer, HTTPServerImpl] [Topic = my-topic] Registered Subscription with routes: default
== APP == Error: The topic 'my-topic' is already subscribed to PubSub 'my-pubsub-component', there can be only one topic registered.
== APP ==     at SubscriptionManager.registerSubscription (/home/hzk/js-sdk-fork/build/pubsub/subscriptionManager.js:75:19)
== APP ==     at HTTPServerImpl.registerPubsubSubscription (/home/hzk/js-sdk-fork/build/implementation/Server/HTTPServer/HTTPServerImpl.js:86:34)
== APP ==     at HTTPServerPubSub.<anonymous> (/home/hzk/js-sdk-fork/build/implementation/Server/HTTPServer/pubsub.js:84:18)
== APP ==     at Generator.next (<anonymous>)
== APP ==     at /home/hzk/js-sdk-fork/build/implementation/Server/HTTPServer/pubsub.js:20:71
== APP ==     at new Promise (<anonymous>)
== APP ==     at __awaiter (/home/hzk/js-sdk-fork/build/implementation/Server/HTTPServer/pubsub.js:16:12)
== APP ==     at HTTPServerPubSub.subscribeBulk (/home/hzk/js-sdk-fork/build/implementation/Server/HTTPServer/pubsub.js:71:16)
== APP ==     at /home/hzk/js-sdk-fork/examples/pubsub/dist/index.js:95:56
== APP ==     at step (/home/hzk/js-sdk-fork/examples/pubsub/dist/index.js:56:23)

  1. Failed to compile when switching to GRPC
const client = new DaprClient(daprHost, process.env.DAPR_GRPC_PORT, CommunicationProtocolEnum.GRPC);

will report Expected 0-1 arguments, but got 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants