pawotter / mastodon-api-cs

The Mastodon API Client Library for C#
https://github.com/tootsuite/mastodon
MIT License
27 stars 4 forks source link

Doesn't seem to be able to login #38

Open Krutonium opened 2 years ago

Krutonium commented 2 years ago

I used the example code as given in the README, except I added a line to read my accounts name to me. I'm getting an error when it's trying to login -

Unhandled exception. Mastodon.API.MastodonApiException: Exception of type 'Mastodon.API.MastodonApiException' was thrown.
   at Mastodon.API.ApiClientBase.CheckResponse(HttpResponseMessage response)
   at Mastodon.API.ApiClientBase.PostAsync(String path, Dictionary`2 parameters, Dictionary`2 headers, Nullable`1 token)
   at Mastodon.API.MastodonAuthClient.GetOAuthToken(String clientId, String clientSecret, String username, String password, OAuthAccessScope scope, Nullable`1 token)
   at Chatadon.Program.Main(String[] args) in /home/krutonium/RiderProjects/Chatadon/Chatadon/Program.cs:line 19
   at Chatadon.Program.<Main>(String[] args)

Examining everything, it looks like I'm not being given a token, though everything prior to that seems to be working fine. Any thoughts on what may be going wrong?