Oyatel / CometD.NET

CometD.NET is a C# client library for the Bayeux protocol
43 stars 34 forks source link

unsupported_grant_type, grant type not supported #20

Open PatrickSodermans opened 8 years ago

PatrickSodermans commented 8 years ago

Using this solution I am getting the error: {"error":"unsupported_grant_type","error_description":"grant type not supported"}. Googling this returns virtually always the result that the content-type should be set to "application/x-www-form-urlencoded". You clearly do that in

".. InitHttpRequest(req, accessToken); req.ContentType = (!isObject ? "application/x-www-form-urlencoded" : req.Accept)

so what am I missing here?

ohaucke commented 6 years ago

I got this error when trying to auth against a scratch org but using the wrong "login" url (login.salesforce.com instead of test.salesforce.com). So maybe you are using the wrong url?