.net 6?
Hi,
Any estimate on .net 6 for the api?
Issue seems to be RestSharp and its last major update.
Your code when pushed to new AWS .net 6 runtime fails:
Void RestSharp.RestClient.set_FollowRedirects(Boolean) at SmartsheetBuilder().SetAccessToken(apiToken).Build()
We are using smartsheet-csharp-sdk @ 2.126.0
Many thanks,
Brian
Best Answer
-
This is a problem for me post upgrade to RestSharp 108
Answers
-
Hi,
This isn't a .net 6 issue but an issue with your token/server or a newtonsoft/nlog version conflict issue.
For the first possible issue, are you connecting to the us (legacy ) server of smartsheet, or the USGOV/Europe one ?
TAs for the second you should see some warning in the logs.
-
Hi Etienne,
It all runs under .net 3.1 locally and in the AWS Lambda environment. Runs under .net 6 locally, fails on AWS.
We are using the US server.
Since .net3 we have removed NewtonSoft references, using System.Text.Json in its place.
Thanks,
Brian
-
Runs under .net 6 locally, fails on AWS.
So it's a AWS .net 6 issue, wich version of restsharp are you using, do you have any binding redirect ?
Becasue restsharp is unsing newtonsoft, you still have the dependency, so also which version of newtonsoft do you have ?
It's very lickely that there is a version issue with your nuget bidning redirect and you may have to force a specific version of resharp and/or smartsheet api.
-
Etienne,
Thanks for getting involved. Sounds like a lot of trial and error.
We'll park this until we have more time.
Regards,
Brian
-
This is a problem for me post upgrade to RestSharp 108
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives