yogthos / mastodon-bot

a bot for mirroring Twitter/Tumblr accounts and RSS feeds on Mastodon
https://mastodon.social/@newsbot
MIT License
192 stars 24 forks source link

action is outside the authorized scopes #24

Closed jerger closed 4 years ago

jerger commented 5 years ago

It tried the mastodon-bot with twitter & my mastodon server (ver. 2.9.2) and get these message:

root@6b3c928e7c96:/app/mastodon-bot# ./mastodon-bot.cljs
This action is outside the authorized scopes

Unsure whether this message comes from twitter or mastodon ... but google search seems to know this message as mastodon client issue - correct?

I reviewed all my api keys, the mastodon api url is working e.g. for https://social.meissa-gmbh.de/api/v1/accounts/1.

The mastodon app has the permissions to read* write* follow push ... any idea what could be wrong?

yogthos commented 5 years ago

Hmm, it does seem like the problem is on Mastodon side, but not sure what's causing that specifically.

jerger commented 5 years ago

Found similar for mastodon.el: https://github.com/jdenen/mastodon.el/issues/1

But I estimate, your using https://github.com/vanita5/mastodon-api ;-)

yogthos commented 5 years ago

Yeah that's the one, so I guess the client needs to be updated upstream then. I haven't had a chance to look, but might be easy enough to call the API directly using the request module. I think the client just constructs the request using the token.

jerger commented 4 years ago

I will try to solve the issue, but I will need some time to get into cljs & js. I try to explore your code by getting dirty hands - what do you think about starting with a refactoring (separate mastodon / rss / thumbler / twitter in namespaces & define the input / output using spec) ?

First steps I tried here: https://github.com/DomainDrivenArchitecture/mastodon-bot/blob/refactoring/mastodon_bot/mastodon_api.cljs

Do you like the idea or should I handle my learning-journey just as some kind of coding-kata?

yogthos commented 4 years ago

Splitting things up sounds good to me, and definitely not opposed to having some specs around things. A PR is very welcome if you get it all working the way you like. :)

jerger commented 4 years ago

Can no longer reproduce this issue.