-
Notifications
You must be signed in to change notification settings - Fork 452
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
Function host does not spin up with nonexisting SB subscription #635
Comments
Can you explain exactly what is going on? Is that connection string invalid? It sounds like you're saying that the misconfiguration caused the host to shut down, which does indeed seem like a poor user experience. |
Connection string is valid. I mostly use RootManageSharedAccessKey connection string for my functions. Steps to reproduce:
Expected result: Actual result: |
@azyl-scnsoft I gather that you know that the last repro steps you provided would result in an expected error (i.e. can't listen on non-existent entities if we only have Listen rights and can't create them). The question is whether this should cause host startup failure. We need to investigate more, but I believe that currently we don't have good support for errors involving the startup of listeners, which require valid connection strings / connectivity to underlying entities. In such cases, I do believe that a host level unhandled exception may occurr, meaning the host cannot start until the error is fixed. We need to verify that is the case, and improve if possible. The host error you showed above should have been shown to you in the portal in a red bubble window. Can you confirm that is the case? While our current handling for these error paths is not ideal, we need to at least ensure the error is surfaced. |
@mathewc |
Did you also get a descriptive error message pointing to the problem? You should have. |
Remaining work here is to repro the issue and verify that the red bubble error includes a detailed error message indicating the issue. If it does, we can close this out as by design at this point. |
For RC timeframe, can we do a more descriptive error message? We likely also want to look at, later on, having the host not crash and provide more graceful error messages. Out of scope for now, though. |
@mathewc After a while, I also got this error popup
|
Moving this out as it is more complex than originally designed. |
This has now been fixed by @mamaso in the latest release. |
I have SB namespace without topics and subscriptions.
I created simple function with trigger bindings, configured with default values for topic\subscription names.
After restarting the app, Function host doesn't start anymore: 'Function host is not running.'
In host logs I see next log message:
From Webjob source code, I see that topics and subscriptions are created only when access rights are set to Manage.
However, not sure if such configuration failure should make the host broken.
The text was updated successfully, but these errors were encountered: