Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

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,970
0 votes
0 answers
57 views

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
2 votes
1 answer
129 views

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,809
1 vote
1 answer
74 views

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
35 views

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
145 views

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
80 views

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
99 views

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
326 views

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
79 views

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
792 views

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
1 answer
54 views

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
139 views

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
219 views

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
0 votes
1 answer
97 views

I'm trying to retrieve a list of users of my JIRA instance: options.Authenticator = new HttpBasicAuthenticator(_jiraConfig.UserName, _jiraConfig.Token); options.BaseUrl = new Uri(_jiraConfig.Url); ...
J4N's user avatar
  • 21.1k
0 votes
0 answers
117 views

I am getting "could not connect ssl/tls secure channel" error while trying to call our API from Windows application. The dll used in Windows Application targets .Net framework 4.8 and it ...
Patel's user avatar
  • 449
2 votes
1 answer
152 views

When I add ContentType header to request it becomes null instead of application/json. I can see it in the debugger. Here is the code RestClient client = new RestClient(url); client.Timeout = -1; ...
Perturbator's user avatar
1 vote
1 answer
379 views

The call with bearer token to get XML with XML argument is done so far with RestSharp where XElement Payload = <Access><AppID>35</AppID><UserToken>QrEil9L9S</UserToken>&...
Ildar's user avatar
  • 149
0 votes
0 answers
55 views

I have a simple REST client written using RestSharp. var opts = new RestClientOptions("http://api.muyservice.com/") { // ResponseStatus should not be an Error when deserialisation failed....
Serg's user avatar
  • 4,831
0 votes
0 answers
311 views

In a C# DOTNET 4.8 ASP.NET MVC 5 project running on a Windows 2012 R2 server, I call OpenAi API (v1/chat/completions) using the RestSharp.RestClient like this: ServicePointManager.Expect100Continue = ...
mortenma71's user avatar
  • 1,316
0 votes
1 answer
35 views

I had the code below to set up the rest client. But after upgrading to.NET 8 and upgrading RestSharpt to the latest version, RestResponse is giving an error saying 'There is no argument given that ...
Mukesh's user avatar
  • 73
0 votes
1 answer
104 views

We are building a Worker service that we want to host in a Docker container. This container interacts with the REST APIs for our on-premise SharePoint server. Authentication in SharePoint REST APIs ...
user1913559's user avatar
0 votes
0 answers
81 views

I was using AdvancedResponseWriter as shown in code below in order to save incoming stream in file. But in the new version of RestSharp the method changed it's signature to get Func <...
user1178399's user avatar
  • 1,148
0 votes
1 answer
72 views

Is there any way in REST Sharp version 111.3 to modify the Content-Type value inside the form data? Below is an example outgoing call I captured with Fiddler. As you can see, the content is JSON (...
Jeff R's user avatar
  • 1
0 votes
0 answers
58 views

I have read that Resharp does not provide support for RestSharpSigned 105.2.3. I wanted to update it to RestSharp 111.4.0. But I dont want to do ant major changes. any good link or support to read ...
Md Ahteshamul Hussain's user avatar
1 vote
1 answer
191 views

The documentation of RestSharp contains the following section: RestClient lifecycle Do not instantiate RestClient for each HTTP call. RestSharp creates a new instance of HttpClient internally, and ...
Odrai's user avatar
  • 2,433
1 vote
1 answer
1k views

I have an API client class built using _client = new RestSharp.RestClient(...); with methods of this form: public async Task<TResponse> PostAsync<TRequest, TResponse>(string resource, ...
Myster's user avatar
  • 18.2k
0 votes
1 answer
97 views

Our .NET application currently uses RestSharp v106 and Ninject. It uses client certificates to authenticate the user with a secured server. The user starts the application, selects one of the ...
lippertsjan's user avatar
0 votes
0 answers
197 views

I use RestSharp in version 111.2.0. All our requests are build in this way: internal async Task<byte[]> GetFileAsync(int documentId) { RestRequest request = new RestRequest($"{_apiPath}/...
Marcel Grüger's user avatar
0 votes
1 answer
409 views

crypto.com exchange API has close to no documentation available, at least for C#. I am trying to get as little as the account summary, and failing miserably. Can we try to have the right functions ...
Franck E's user avatar
  • 729
0 votes
1 answer
125 views

The documentation at https://restsharp.dev/v107/#recommended-usage says: Do not use one instance of RestClient across different API clients. Our use-case is calling callback URLs received in ...
axk's user avatar
  • 5,484
0 votes
1 answer
463 views

I need to automate some APIs using RestSharp. I have a Postman collection with all the APIs. I was wondering if there is a library available out there that reads a Postman collection and executes API ...
Jaideep Dhumal's user avatar
1 vote
1 answer
121 views

when trying to send the request through postman ,works fine . but gives the following error ,when using it direct from vb.net code we are using Lib RestSharp and version 106.15.0.0 the error ...
adelaraby's user avatar
0 votes
3 answers
121 views

I'm trying to use OAuth 1.0 authentication with RestSharp. Visual Studio can't seem to find the OAuth1Authenticator class. What's causing this issue? using RestSharp; using RestSharp.Authenticators....
Johnny Tamborrino's user avatar
0 votes
2 answers
529 views

RestSharp Documentation I can use the HttpClient instance created without any base URI, and add all details in HttpRequestMessage to reuse the HttpClient instance. class Example { private static ...
subject-q's user avatar
  • 135
0 votes
1 answer
153 views

Its my first time of implementing a test framework with RestSharp + NUnit. I have not seen any information on Restsharp page stating it support for AzureDevOps. I just wanted to know anyone had ...
E-Test's user avatar
  • 3
0 votes
1 answer
47 views

I'm calling an API service that wraps all responses surrounded by a Response element: <?xml version="1.0" encoding="UTF-8"?> <Response xmlns="http://www.example.com/...
erict's user avatar
  • 1,541
0 votes
1 answer
101 views

I am very new to VB.net. I understand that I need to add the Twilio and RestSharp packages to my project via NuGet. After some strange behavior where the libraries disappear and reappear (like show up ...
Ernesto's user avatar
  • 35
0 votes
2 answers
333 views

I have a server running locally on my machine, and two different environments/projects, .Net8 (or any other .Net core version) and .Net Framework 4.8 performing post request on server with same ...
Farhan Ahmad's user avatar
0 votes
1 answer
223 views

I am attempting to access some graph items with a RestSharp request. I know I need to somehow use the client ID and secret to obtain a token and use that for authorization but an really new to all of ...
Brenda Lynn Anderson's user avatar
1 vote
1 answer
155 views

I'm working on a project where I need to send HTTP requests using RestSharp in C#. These requests require custom headers, some of which may contain special characters or non-ASCII characters, such as ...
Sara's user avatar
  • 53
0 votes
0 answers
53 views

I’m developing a vb.net application targeting .Net Framework 4.8 using RestSharp and Polly and I trying to gzip the request that is being sent. My understanding is if I can get hold of the serialized ...
Lyra Leo's user avatar
0 votes
2 answers
134 views

I have C# WPF net framework 4.7.2 app running which has been working for about 18 months on 1200 computers. Just this morning I have had support calls as a number of computers cannot load our app. In ...
Glenn Angel's user avatar
0 votes
0 answers
38 views

[The problem]: The request works in Postman, however the server responded “Unauthorized” from mobile app request. [The code]: var options = new RestClientOptions(MyBaseEndpoint) { MaxTimeout = -1, };...
Winston's user avatar
  • 97
0 votes
1 answer
551 views

I'm looking to migrate to v110 of Restsharp (from v106). All looks OK so far bar I'm unsure how to update the Rest Client once initialised. We are running api automation and have an initial method to ...
user17218342's user avatar
0 votes
1 answer
405 views

I'm trying to get a token from a given endpoint by using restsharp and client_credentials authenthication specifying a scope. The token I get in response does not have the correct scope and the I use ...
Illuminae's user avatar
0 votes
0 answers
371 views

Restsharp documentation states "RestSharp is a wrapper around HttpClient". Now, as it states in Do HttpClient and HttpClientHandler have to be disposed between requests? "the general ...
Christos Nik's user avatar
0 votes
1 answer
348 views

I have code that submits a POST request and returned are headers, body and a 200 status code. I assert on the status code to make sure it returned 200/204/302, then parse the response body and headers ...
Chunter4's user avatar
0 votes
1 answer
101 views

I have a System endpoint which requires ClientID, SecretKey, Scope and grantType. I set the client-wide authenticator by assigning the Authenticator property of RestClientOptions. Now I also have a ...
Monika Garg Bansal's user avatar
0 votes
1 answer
148 views

I'm trying to test my class (se below) in xunit that is supposed to connect to an API and get all customers , the response I paginated. I don't have access to the API how can I mock this in Xunit, I'm ...
Zordanian's user avatar
  • 103

1
2 3 4 5
51