You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I omit the ConsumerConnection environment variable and run the app, the function still works (e.g., the HTTP endpoints respond) even if the consumer trigger is not properly configured.
When running locally and removing ConsumerConnection from the local.settings.json file, the function still works but logs this message:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.consumer'. Microsoft.Azure.WebJobs.Extensions.CosmosDB:
Cannot create container information for <container-name> in database <database-name> with lease <lease-container-name> in database <database-name> :
Cosmos DB connection configuration 'ConsumerConnection' does not exist. Make sure that it is a defined App Setting.
Microsoft.Azure.WebJobs.Extensions.CosmosDB: Cosmos DB connection configuration 'ConsumerConnection' does not exist.
Make sure that it is a defined App Setting.
My goal is to return a 500 error on the /info endpoint if there are issues (like with the cosmosDB trigger). Is there a method within the nodejs-sdk that exposes the status of a function?
The text was updated successfully, but these errors were encountered:
I have a function app using the
@azure/functions
npm package version4.5.1
, with the following triggers defined:If I omit the
ConsumerConnection
environment variable and run the app, the function still works (e.g., the HTTP endpoints respond) even if the consumer trigger is not properly configured.When running locally and removing
ConsumerConnection
from thelocal.settings.json file
, the function still works but logs this message:My goal is to return a
500
error on the/info
endpoint if there are issues (like with thecosmosDB
trigger). Is there a method within thenodejs-sdk
that exposes the status of a function?The text was updated successfully, but these errors were encountered: