Closed bortzmeyer closed 7 years ago
Actually I do want to be able to dump a config file even when the user is not logged in, because I want to be able to generate the app id/secrets.
But it should fail if a username is provided and the authentication fails -- I'll do that.
Regarding the message "cannot unmarshal server response", I would say it's a serveur bug. The Mastodon server should not return an HTML error page when the authentication fails, it should return a nice JSON-encoded error message.
A typo in my email address allowed me to test the error messages:
Two problems: the second part of the error message ("cannot unmarshal server response: invalid character '<'") is useless and misleading. And no configuration file should be produced when there is not even a successful authentication.