Skip to main content
0 votes
1 answer
45 views

URL segment changing with subsequent call to AddUrlSegment

I have a situation where part of my code sets a URL segment to a value, and then calls the code that executes the request with a retry if authentication fails. Part of refreshing the authentication ...
Greg Veres's user avatar
  • 1,960
0 votes
0 answers
53 views

Empty value HTTP POST Multipart/form-data field using RestSharp

Good morning, I am facing the following issue when sending this request, which requires a Multipart/form-data with one parameter receiving a JSON and another receiving the file. Currently, this is the ...
Diego Marulanda's user avatar
1 vote
1 answer
117 views

RestSharp stops working in installed version of software

I am using RestSharp for the first time, having installed it via NuGet. Everything works wonderfully in my development environment. I have now created an installer for my software by means of an MVS ...
RPM's user avatar
  • 1,789
1 vote
1 answer
72 views

Removing a JSON element that should be an array

I am trying to use RestSharp to deserialize a JSON return into C# classes. The return sometimes contains a single, empty object when the data definition calls for an array of objects. If there is ...
Grant Fish's user avatar
0 votes
0 answers
31 views

RESTsharp seems to cause error in Release build of Windows UWP App

We needed to send REST API requests to the Google and Zoom APIs from our UWP App, so we decided to use RESTsharp The code that uses RESTsharp all works fine when we build the UWP App in Debug.NET ...
mike's user avatar
  • 21
1 vote
2 answers
127 views

How to send a simple string in a body of a Post request in RestSharp

I have an API that receives a string token. This API has a Post method, and is expecting the string in the body: [HttpPost("refreshToken")] [Produces(MediaTypeNames.Application.Json)] public ...
Marlon Fez's user avatar
0 votes
1 answer
67 views

RestSharp returns "Invalid Content-Range header." on final file chunk with MS Graph API

I have been at this for a week and it's getting frustrating. On the final upload request, I get the error "Invalid Content-Range header." All other chunk uploads are successful, only the ...
Mark's user avatar
  • 1,119
1 vote
0 answers
87 views

RestSharp and undefined delay for CancellationTokenSource following upgrade to .net8

I recently upgraded an internally developed Windows application from .net 6 to .net 8, and all nuget packages it uses, including RestSharp to version 112.1.0. Since then, every request made with ...
Agostinho Vieira's user avatar
1 vote
1 answer
279 views

DataMember Name attribute ignored when deserializing a JSON object

I have an issue deserializing a JSON object into my class. I have a class DocumentListByPolicy that is used as a List<> in another class. For the document list, this is my code: namespace ...
JimboJones's user avatar
0 votes
0 answers
73 views

RestSharp.RestResponse.Content is truncated in C#

Receiving below truncated response where as the rawbyte has full data while calling a Rest API in c# using V112.1.0. RestSharp.RestResponse} Content: "[{\"ClientId\":\"...
Krishna G's user avatar
1 vote
1 answer
717 views

Restsharp TLS 1.2 or 1.3 configured but callback says it is still Version 1.1

I use an Restsharp RestClient (Edit. .net Framework 4.8) and set the TLS protocol before I do the first web service call via ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType....
Marc's user avatar
  • 2,745
0 votes
0 answers
28 views

Rest request to HDFC mutual fund giving Forbidden error in C#

I am trying to fetch information of HDFC mutual fund scheme data from its website. Bellow is Code var options = new RestClientOptions("https://cms.hdfcfund.com") { ...
vaibhav shah's user avatar
  • 5,099
0 votes
1 answer
51 views

Sending file using RestSharp does Contain File

I want to upload a File using Post. When using Postman everything works fine and the file is uploaded as expected, but when I try the same with RestSharp my File is always empty. Am I doing something ...
Franz's user avatar
  • 476
1 vote
1 answer
136 views

UPS OAUTH authorize API integration getting timeout

In UPS OAuth API integration, we are getting a timeout on API response. When we try a request with CURL, we are getting a http 302 successful response. But in RestSharp / C#, we get timeout. C# code: ...
shiptoboxes shiptoboxes's user avatar
0 votes
1 answer
213 views

RestSharp requests became working when I intercept them with Fiddler Everywhere

There's a ridiculous problem. I send a POST request to an API and it goes smoothly with programs like Postman/Bruno. But with libraries like RestSharp/Flurl/HttpClient, I was getting 400 responses. ...
cudev's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
168