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

Does not support Newtonsoft.json 9.0.1+ #28

Open
watashiSHUN opened this issue Mar 16, 2018 · 1 comment
Open

Does not support Newtonsoft.json 9.0.1+ #28

watashiSHUN opened this issue Mar 16, 2018 · 1 comment
Labels

Comments

@watashiSHUN
Copy link
Contributor

{
  "frameworks": {
    "net46": {
      "dependencies": {
        "Microsoft.Azure.Devices": "1.5.1"
      }
    }
  }
}

with above project.json which restore Newtonsoft.json 10.0.3, we will get a

[Error] Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException : Error indexing method 'Functions.EventGrid-CSharp' ---> System.InvalidOperationException : Can't bind EventGridTriggerAttribute to type 'Newtonsoft.Json.Linq.JObject'.

as a workaround, add an explicit reference to Newtonsoft.json 9.0.1:

"dependencies": {
    "Microsoft.Azure.Devices": "1.5.1",
    "Newtonsoft.json 9.0.1"
}
watashiSHUN added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 11, 2018
watashiSHUN added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 16, 2018
watashiSHUN added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 16, 2018
@watashiSHUN
Copy link
Contributor Author

another possible solution is to not use JObject in the function body, using POCO or string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants