dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

Follow-up: dotnet subscriber unable to receive published message from controller post method

Open usdruscia opened this issue 4 years ago • 1 comments

Following up on isssue #487, I can confirm that app.UseHttpsRedirection() is the culprit when using TopicAttribute or the YAML declarative subscription, which gives the following error:

time="2021-04-27T16:08:14.8816947-04:00" level=error msg="app returned http status code 500 from subscription endpoint" app_id=myapi instance=DESKTOP scope=dapr.runtime type=log ver=1.1.2
time="2021-04-27T16:08:14.882223-04:00" level=debug msg="app responded with subscriptions []" app_id=myapi instance=DESKTOP scope=dapr.runtime type=log ver=1.1.2

Commenting that line and using the HTTP application port fixes the issue (using the HTTPS application port never works).

Environment:

Windows 10 Dapr 1.1.2 self-hosted (w/ Docker, running the app using the Dapr CLI and docker-compose) ASP.NET core 3.1 w/ Dapr.AspNetCore 1.1.0 Pub/Sub component: Azure Service Bus Topics

usdruscia avatar Apr 29 '21 14:04 usdruscia

This is something we can explicitly add to the documentation in a few places. If you are using HTTPS you need to configure Dapr to do the same.

rynowak avatar Apr 30 '21 20:04 rynowak