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

Improve error message when EventHub connection string is not set #32

Closed
lindydonna opened this issue Jan 19, 2017 · 1 comment
Closed
Milestone

Comments

@lindydonna
Copy link
Contributor

lindydonna commented Jan 19, 2017

Repro steps:

  • Create a new C# event hub function via func new
  • Add connection string named bar to function.json
  • Run host without setting value for connection string bar in appsettings.json

Expected result:

Error: Missing connection string for "bar". Did you forget to run "func azure functionapp fetch-app-settings <functionAppName>"?

Actual result:

Reading host configuration file 'C:\CDriveCode\FuncCliProjects\new-proj\host.json'
Generating 0 job function(s)
Starting Host (HostId=171ab663c24c47c781e2981bbc8ac788, Version=1.0.0.0, ProcessId=14200, Debug=False)
No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Service
Bus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. confi
g.UseServiceBus(), config.UseTimers(), etc.).
Job host started
The following 1 functions are in error:
EventHubTriggerCSharp: Value cannot be null.
Parameter name: receiverConnectionString.

@lindydonna lindydonna changed the title Improve error message when EventHub connection string is not set Improve error message when EventHub or ServiceBus connection string is not set Jan 24, 2017
@lindydonna lindydonna changed the title Improve error message when EventHub or ServiceBus connection string is not set Improve error message when EventHub connection string is not set Jan 24, 2017
@lindydonna lindydonna added this to the 1.0.0.beta.11 milestone Jan 24, 2017
@lindydonna
Copy link
Contributor Author

Closing as it is handled by #38

@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant