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
I have been trying to use deepl in an Azure Function and am battling against errors because of System.Text.Json.
Error:
System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
What I am wondering, is if it is possible to use Newtonsoft.Json instead of System.Text.Json. Microsoft seem to be moving everything over to Newtonsoft instead.
The text was updated successfully, but these errors were encountered:
For now I have written my own code to do a post request to the deepl API, it is significantly less effort than trying to get all the depencencies lined up in an Azure Function to manage to get this working. Also I would not be surprised if in future versions of Azure Functions this again breaks. The rate of change with Azure Functions / .net / .net core is such that setting up something which required specific versions of dependencies and config is going to be more work than it is worth to initially develop and then maintain.
If you decide not to switch over to Newtonsoft.Json, which would be understandable. Maybe you could create a sample Azure Function solution? I am sure I am not the first or last person that would like to use deepl in a Function.
I have been trying to use deepl in an Azure Function and am battling against errors because of System.Text.Json.
Error:
System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Issue is mentioned in this issue:
Azure/azure-functions-host#5469
What I am wondering, is if it is possible to use Newtonsoft.Json instead of System.Text.Json. Microsoft seem to be moving everything over to Newtonsoft instead.
The text was updated successfully, but these errors were encountered: