You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove all the text above the next line when submitting your issue.
Describe the bug
We have upgraded rest sharp to latest stable version 112 and try to generate token through an API by passing client id and secret It is failing. However, if we try to generate similar token using older version of Rest Sharp API(106), works perfectly fine. What change, I need to do in my code snippet to suit the call
To Reproduce
var request = new RestRequest();// new RestRequest("api/attachments", Method.Post);
request.Method = Method.POST;
request.Timeout = 800000;//new TimeSpan(800000);
// request.ReadWriteTimeout = 800000;
request.AddHeader("User-Agent", "Mozilla/5.0");
request.AddHeader("Charset", "utf-8");
request.AddHeader("Content-Type", "application/json");
JObject jbody = new JObject();
jbody.Add("client_id", client_id);
jbody.Add("client_secret", client_secret);
jbody.Add("grant_type", "client_credentials");
Remove all the text above the next line when submitting your issue.
Describe the bug
We have upgraded rest sharp to latest stable version 112 and try to generate token through an API by passing client id and secret It is failing. However, if we try to generate similar token using older version of Rest Sharp API(106), works perfectly fine. What change, I need to do in my code snippet to suit the call
To Reproduce
var request = new RestRequest();// new RestRequest("api/attachments", Method.Post);
request.Method = Method.POST;
request.Timeout = 800000;//new TimeSpan(800000);
// request.ReadWriteTimeout = 800000;
request.AddHeader("User-Agent", "Mozilla/5.0");
request.AddHeader("Charset", "utf-8");
request.AddHeader("Content-Type", "application/json");
JObject jbody = new JObject();
jbody.Add("client_id", client_id);
jbody.Add("client_secret", client_secret);
jbody.Add("grant_type", "client_credentials");
request.AddParameter("application/json", jbody, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Expected behavior
API should return a value which is used a token
Stack trace
No exception. Response Status code is 0
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: