-
Notifications
You must be signed in to change notification settings - Fork 337
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
Subscription endpoint not being called using Pub/Sub #803
Comments
I have the same problem. But if I use the topic name for the HttpPost attribute, then it works. |
I tried that as a curiosity but still same behavior on my end--subscriber never picks up the message |
@conradcreel - Have you tried running the When you run the app, do you see a log message like this?
Or do you see an error like this?
|
Hey guys @conradcreel @bitTobiasMeier @halspang , I figured it out! Also some reference from Apple |
@Weidaicheng - I'll try playing with the ports but I'm running this on Linux. Also I didn't have an issue calling /dapr/subscribe (and getting the right endpoint in the response). Literally everything works perfectly... except the handler isn't firing--verified by calling it directly versus publishing a message. The former writes to the log, the latter does nothing. |
Can you share any logs from your dapr sidecar or application? It'd be good to see what kind of error you're getting. |
A log would be perfect, so we can check that out🤓 |
similar thing I m facing, pub is working fine, while sub is not getting hit, using service bus queue, dapr/subscription is there on the subscription endpoint, logs confirmed pubsub loaded while running subscription client.
|
Can u share ur code? |
Have you checked the Scopes in both publisher and Subscriber? |
@SarangRapid - You also need to see a message like:
If you see something like that, we know your subscriptions are actually being loaded. The component loading is just the actual connection to the service. Aside from that, nothing is actually happening yet. |
I ran into a similar issue while trying to work through the Publish and Subscribe quickstart guide using the .NET samples. I am working on a Mac. Turns out it was a simple port configuration mismatch issue. The port in the quickstart documentation here doesn't currently match the port in the code sample here Updating the Dapr run --app-port argument to match the port the ASP.NET Core app is listening on fixed the issue. Suggest checking all of the port configurations in your setup. Also, the Dapr documentation needs to be updated to match the code samples. |
I'm going to close this as the port in the .NET quickstart presently matches the port in the .NET sample meaning they should work without further configuration. Please don't hesitate to re-open this or file another ticket if you're still experiencing this issue. |
Tried a bare bones pub/sub sample with dapr 1.5.1 and the Subscribing endpoint is never called. Everything seems to be configured correctly and publishing works fine.
Program.cs looks like:
PublisherController.cs looks like:
SubscriberController.cs looks like:
Calling /dapr/subscribe returns:
[{"topic":"my_topic","pubsubName":"pubsub","route":"subscribe"}]
And I can successfully publish from the /publish endpoint and the CLI. Additionally I can call the /subscribe endpoint directly with an HTTP Post so it's not a routing issue.
Shouldn't matter but I'm using the default pubsub.yaml with Redis.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: