[solved] Unable to login (String preparation failed) since v1.5.0


#1

Hi,

I just upgraded our instance https://reseau.education from v1.4.7 to v1.5.0

No errors in the process

Everything seems OK but i get « something went wrong » page (error 500) immediately after authentication and can’t access my home feed page

Once logged I can access the /settings/profile and /admin/ by typing the URL directly

I tried to change some options (locked, icons, prefs…)
I added a brand-new user. Same problem. (home page error, profile settings OK)

Apparently the same issue exists on my user on mastodon.social/@Decio

Any idea?
Thanks in advance,

Decio

logs:

Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] method=GET path=/ format=html controller=HomeController action=index status=500 error=‘IDN::Idna::IdnaError: String preparation failed (1)’ duration=171.30 view=0.00 db=46.08
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135]
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] IDN::Idna::IdnaError (String preparation failed (1)):
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135]
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:103:in link_to_url' Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:70:inblock in encode_and_link_urls’
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:93:in block in rewrite' Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:90:ineach’
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:90:in reduce' Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:90:inrewrite’
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:68:in encode_and_link_urls' Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/lib/formatter.rb:48:insimplified_format’
Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/serializers/rest/account_serializer.rb:11:in note' Aug 06 01:10:48 bundle[1002]: [243d4e25-2a0c-46b4-91f3-9752e62bc135] app/controllers/home_controller.rb:19:inset_initial_state_json’


#2

OK Solved!
Aaargh Sorry, :flushed: I just missed it…
the issue was caused by a punycode URL (https ://:man:t2::computer::beer:.ws) in my bio profile (punyDoS) :rofl:

i could fix and solve on our instance: home feed is back for everyone
and on my mastodon.social account

Thank you

Decio