When LOCAL_DOMAIN is different than WEB_DOMAIN on an instance, then, the error above happens.
To fix it, one need to substitute the LOCAL_DOMAIN by WEB_DOMAIN
Traceback (most recent call last):
File "./t2m", line 267, in <module>
parser.dispatch()
File "/root/t2m/ve/local/lib/python2.7/site-packages/argh/helpers.py", line 55, in dispatch
return dispatch(self, *args, **kwargs)
File "/root/t2m/ve/local/lib/python2.7/site-packages/argh/dispatching.py", line 174, in dispatch
for line in lines:
File "/root/t2m/ve/local/lib/python2.7/site-packages/argh/dispatching.py", line 277, in _execute_command
for line in result:
File "/root/t2m/ve/local/lib/python2.7/site-packages/argh/dispatching.py", line 260, in _call
result = function(*positional, **keywords)
File "./t2m", line 197, in one
db = forward(db, twitter_handle, mastodon_handle, debug=debug, number=number, only_mark_as_seen=only_mark_as_seen, retweets=retweets)
File "./t2m", line 60, in forward
ensure_client_existe_for_instance(instance)
File "./t2m", line 47, in ensure_client_existe_for_instance
api_base_url='https://%s' % instance,
File "/root/t2m/ve/local/lib/python2.7/site-packages/mastodon/Mastodon.py", line 73, in create_app
raise MastodonNetworkError("Could not complete request: %s" % e)
mastodon.Mastodon.MastodonNetworkError: Could not complete request: No JSON object could be decoded
When
LOCAL_DOMAIN
is different thanWEB_DOMAIN
on an instance, then, the error above happens. To fix it, one need to substitute theLOCAL_DOMAIN
byWEB_DOMAIN