.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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives