.net 6?

Options

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

Answers

  • Etienne Mermillod
    Etienne Mermillod ✭✭✭✭✭
    Options

    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.

  • BKing
    BKing ✭✭✭
    Options

    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

  • Etienne Mermillod
    Etienne Mermillod ✭✭✭✭✭
    Options

     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.

  • BKing
    BKing ✭✭✭
    Options

    Etienne,

    Thanks for getting involved. Sounds like a lot of trial and error.

    We'll park this until we have more time.

    Regards,

    Brian

  • BWebb
    BWebb ✭✭
    Answer ✓
    Options

    This is a problem for me post upgrade to RestSharp 108