Skip to content

Lots of IDN::Idna::IdnaError in puma log #4496

@TheKinrar

Description

@TheKinrar

Users of the instance report 500 error codes and issues with the local timeline only.
Nothing wrong on my side so it seems like it does not impact every user.

In puma's log I have a lot of errors like these:

Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] IDN::Idna::IdnaError (String preparation failed (1)):
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409]
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:103:in `link_to_url'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:70:in `block in encode_and_link_urls'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:93:in `block in rewrite'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:90:in `each'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:90:in `reduce'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:90:in `rewrite'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:68:in `encode_and_link_urls'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/lib/formatter.rb:48:in `simplified_format'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/serializers/rest/account_serializer.rb:11:in `note'
Aug 02 10:06:06 mastodon bundle[14168]: [d98891f1-1f2d-4549-a211-bbca351fc409] app/controllers/api/v1/notifications_controller.rb:14:in `index'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f]
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] IDN::Idna::IdnaError (String preparation failed (1)):
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f]
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:103:in `link_to_url'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:70:in `block in encode_and_link_urls'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:93:in `block in rewrite'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:90:in `each'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:90:in `reduce'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:90:in `rewrite'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:68:in `encode_and_link_urls'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/lib/formatter.rb:48:in `simplified_format'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/serializers/rest/account_serializer.rb:11:in `note'
Aug 02 10:06:50 mastodon bundle[14168]: [ea010a38-5fc4-45a1-b32c-93cfd1d52a6f] app/controllers/api/v1/timelines/public_controller.rb:10:in `show'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169]
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] IDN::Idna::IdnaError (String preparation failed (1)):
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169]
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:103:in `link_to_url'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:70:in `block in encode_and_link_urls'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:93:in `block in rewrite'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:90:in `each'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:90:in `reduce'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:90:in `rewrite'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:68:in `encode_and_link_urls'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/lib/formatter.rb:48:in `simplified_format'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/serializers/rest/account_serializer.rb:11:in `note'
Aug 02 10:07:13 mastodon bundle[14168]: [2e6bf225-5fa5-4249-849d-f74f89580169] app/controllers/api/v1/timelines/public_controller.rb:10:in `show'

  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions