There was an issue connecting
Hi ,
I am using smartsheet-csharp.sdk version 2.101.0.0. When I consume my web application on my laptop and on a UAT, everything are working fine but I am having problem in production. The utility returning "There was an issue connecting" exception.
This is my code:
var Β Β _smartsheet = new SmartsheetBuilder().SetAccessToken(token.AccessToken).Build();
long sheetID = 4566555;
var _sheet = Β _smartsheet.SheetResources.GetSheet(sheetID, null, null, null, null, null, null, null);
Answers
-
I use VS 2019 on my laptop (windows 10 Pro, 1903, x64)
create a new c# console app, add sdk from NuGet
NetFramework = 4.5.2, Nlog+Newtonsoft+RestShart = last versoin
next step
//add in project
using Smartsheet.Api;
using Smartsheet.Api.Internal.Http;
using Smartsheet.Api.Models;
//and build connection
SmartsheetClient sm = new SmartsheetBuilder().SetAccessToken("myToken").Build();
// after - get all sheets
Β Β Β Β Β Β PaginatedResult<Sheet> sheets = sm.SheetResources.ListSheets(
Β Β Β Β Β Β Β new SheetInclusion[] { SheetInclusion.SOURCE },
Β Β Β Β Β Β Β new PaginationParameters(
Β Β Β Β Β Β Β Β true,Β Β Β Β Β Β // includeAll
Β Β Β Β Β Β Β Β null,Β Β Β Β Β Β // int pageSize
Β Β Β Β Β Β Β Β null)Β Β Β Β Β Β // int page
Β Β Β Β Β Β );
get error - Smartsheet.Api.Internal.Http.HttpClientException: "There was an issue connecting."
PS: in project from git i have same error, RetryHttpClient() and ProxyHttpClient("localhost", 8888) do not work :(
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives