Missing mime types raising error on following some relays #296

Open
opened 2022-11-21 11:35:48 +00:00 by gamerfort · 1 comment

When trying to follow a relay, I see the following error messages show up in the logs:

Nov 21 11:15:02 akkoma**** 11:15:02.899 request_id=FymVTt8A8-w-1GsAAEWh [error] Internal server error: %Phoenix.NotAcceptableError{accepts: ["json", "jrd+json", "xml", "xrd+xml"], message: "no supported media type in accept header.\n\nExpected one of ["json", "jrd+json", "xml", "xrd+xml"] but got the following formats:\n\n * "application/activity+json" with extensions: ["activity+json"]\n\nTo accept custom formats, register them under the :mime library\nin your config/config.exs file:\n\n config :mime, :types, %{\n "application/xml" => ["xml"]\n }\n\nAnd then run mix deps.clean --build mime to force it to be recompiled.\n", plug_status: 406}

This is while running the latest OTP (3.4.0). I'm not sure how to resolve this.

The relay in question this time was https://relay.shc.kanagawa.jp/actor

When trying to follow a relay, I see the following error messages show up in the logs: Nov 21 11:15:02 akkoma**** 11:15:02.899 request_id=FymVTt8A8-w-1GsAAEWh [error] Internal server error: %Phoenix.NotAcceptableError{accepts: ["json", "jrd+json", "xml", "xrd+xml"], message: "no supported media type in accept header.\n\nExpected one of [\"json\", \"jrd+json\", \"xml\", \"xrd+xml\"] but got the following formats:\n\n * \"application/activity+json\" with extensions: [\"activity+json\"]\n\nTo accept custom formats, register them under the :mime library\nin your config/config.exs file:\n\n config :mime, :types, %{\n \"application/xml\" => [\"xml\"]\n }\n\nAnd then run `mix deps.clean --build mime` to force it to be recompiled.\n", plug_status: 406} This is while running the latest OTP (3.4.0). I'm not sure how to resolve this. The relay in question this time was https://relay.shc.kanagawa.jp/actor
Author
I wonder if this is related to this: https://git.pleroma.social/pleroma/relay/-/merge_requests/24
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#296
No description provided.