Skip to content

Functions lab: Throw a meaningful exception when the vision API request fails.#191

Open
mattmccutchen-microsoft wants to merge 1 commit intoMSRConnections:masterfrom
mattmccutchen-microsoft:functions-error-reporting
Open

Functions lab: Throw a meaningful exception when the vision API request fails.#191
mattmccutchen-microsoft wants to merge 1 commit intoMSRConnections:masterfrom
mattmccutchen-microsoft:functions-error-reporting

Conversation

@mattmccutchen-microsoft

I worked an older version of the Functions lab today (before 1471b0c) and chose the wrong region for the vision API, so my function failed with a NullReferenceException and it took me a while to track down the problem. I see how that you've already addressed that pitfall by making the vision endpoint an app setting. It may still be useful to add proper error reporting in case anything else goes wrong with the vision API. I tested that this code throws a useful exception that shows up on the function's Monitor page in the portal when I deliberately set the wrong SubscriptionKey.

I didn't update the HTML version of the document because a quick attempt to generate it using MarkdownPad produced a ton of unrelated diffs. I'm probably missing something. If you'd like contributors to be able to update the HTML files, please consider documenting the proper procedure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant