Skip to content

500 Internal Server Error #112

Description

@ka-m-be

I use mastodon-archiver to fetch from a friendica server, so this might not be happening with Mastodon.
It worked very well for months, but now I get

Traceback (most recent call last):
  File "/Users/xxx/Library/Python/3.11/bin/mastodon-archive", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/xxx/Library/Python/3.11/lib/python/site-packages/mastodon_archive/__init__.py", line 347, in main
    args.command(args)
  File "/Users/xxx/Library/Python/3.11/lib/python/site-packages/mastodon_archive/archive.py", line 129, in archive
    statuses = mastodon.fetch_remaining(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Library/Python/3.11/lib/python/site-packages/mastodon/utility.py", line 255, in fetch_remaining
    current_page = self.fetch_next(current_page)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Library/Python/3.11/lib/python/site-packages/mastodon/utility.py", line 214, in fetch_next
    return self.__api_request(method, endpoint, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Library/Python/3.11/lib/python/site-packages/mastodon/internals.py", line 297, in __api_request
    raise ex_type('Mastodon API returned error', response_object.status_code, response_object.reason, error_msg)
mastodon.errors.MastodonInternalServerError: ('Mastodon API returned error', 500, 'Internal Server Error', None)

This happens when updating an existing archive and also when starting fresh.
I know it's a server problem, but would be grateful for hints.
Could it be because of pagination size? Total number of posts? A faulty post or data in the API request?

The version is fresh from the repo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions