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
{{ message }}
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
Create a JavaScript EventHub triggered function from the default template
Write a plain string (e.g. "a") to the EventHub. Results in the following failure:
[9/3/2019 8:03:15 PM] System.Private.CoreLib: Exception while executing function: Functions.EventHubTrigger. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'eventHubMessages'. Microsoft.Azure.WebJobs.Host: Binding parameters to complex objects (such as 'Object
') uses Json.NET serialization.
1. Bind the parameter type as 'string' instead of 'Object' to get the raw values and avoid JSON deserialization, or
2. Change the queue payload to be valid json. The JSON parser failed: Unexpected character encountered while parsing value: a. Path '', line 0, position 0.
Issue does not happen if we write a JSON (e.g. { "b" : "a" } to the EventHub or specify dataType as string in the function.json.
Default behavior should be just to have the string without any deserialization?
The text was updated successfully, but these errors were encountered:
Repro steps:
Issue does not happen if we write a JSON (e.g. { "b" : "a" } to the EventHub or specify
dataType
asstring
in thefunction.json
.Default behavior should be just to have the string without any deserialization?
The text was updated successfully, but these errors were encountered: