Description
In what area(s)?
/area runtime
What version of Dapr?
1.10.3
Expected Behavior
Calling the Dapr metadata API returns as expected with no additional calls.
Actual Behavior
With every call to the Dapr metadata api, the pubsub programmatic subscriptions /dapr/subscribe
endpoint is being called. This is fine if the app that is being called has a definition for /dapr/subscribe
but if there is no function definition, you will receive errors in your app and phantom calls to your application.
Reference PR where this was introduced here: eeca309#diff-e56f9bb947923c6f8bb4c995bf4b9469a0ed117276223d16b177dcb04399a4bc
Steps to Reproduce the Problem
Deploy Dapr app without programmatic subscriptions, and thus no /dapr/subscribe
endpoint and hit the metadata API. Notice the failed call to the /dapr/subscribe
endpoint.
Huge thanks to @filintod for helping spot this!
Release Note
RELEASE NOTE: FIX Remove programmatic subscription call from metadata API