Skip to content

User Reported Error 500 in the website #972

Closed

Description

@Rub21

A user has reported in discord that the page is returning an Error 500. However, when I test it on my side, the page loads without any issues.

https://discord.com/channels/413070382636072960/634106496560398349/1339652622008713217

Image

I reviewed the server logs, and it seems the issue is related to certain languages/translations. Specifically, I found an I18n::MissingInterpolationArgument error, indicating that some translations are missing or do not contain the expected values.

[2843fb2ea29383e931c274db6929fcbf] Completed 500 Internal Server Error in 1474ms (ActiveRecord: 414.7ms (165 queries, 1 cached) | GC: 16.1ms)
[2843fb2ea29383e931c274db6929fcbf]
[2843fb2ea29383e931c274db6929fcbf] ActionView::Template::Error (missing interpolation argument :ucl in "Hosting podporují %{ucl}, %{fastly}, %{bytemark} a další %{partners}." ({:devseed=>"<a href=\"https://developmentseed.org/\">Development Seed</a>", :greeninfo=>"<a href=\"https://greeninfo.org/\">GreenInfo Network</a>", :osmf=>"<a href=\"https://osmfoundation.org/\">OpenStreetMap Foundation</a>", :osmus=>"<a href=\"https://openstreetmap.us/\">OpenStreetMap U.S.</a>"} given)):
[2843fb2ea29383e931c274db6929fcbf]
Causes:
[2843fb2ea29383e931c274db6929fcbf] I18n::MissingInterpolationArgument (missing interpolation argument :ucl in "Hosting podporují %{ucl}, %{fastly}, %{bytemark} a další %{partners}." ({:devseed=>"<a href=\"https://developmentseed.org/\">Development Seed</a>", :greeninfo=>"<a href=\"https://greeninfo.org/\">GreenInfo Network</a>", :osmf=>"<a href=\"https://osmfoundation.org/\">OpenStreetMap Foundation</a>", :osmus=>"<a href=\"https://openstreetmap.us/\">OpenStreetMap U.S.</a>"} given))
[2843fb2ea29383e931c274db6929fcbf]     44:       <div class="welcome p-3" hidden>
[2843fb2ea29383e931c274db6929fcbf]     45:         <%= render "sidebar_header", :title => t("layouts.intro_header") %>
[2843fb2ea29383e931c274db6929fcbf]     46:         <p class="fs-6 fw-light"><%= t "layouts.intro_text" %></p>
[2843fb2ea29383e931c274db6929fcbf]     47:         <p class="fs-6 fw-light"><%= t "layouts.hosting_partners_2024_html",
[2843fb2ea29383e931c274db6929fcbf]     48:                                        :devseed => link_to(t("layouts.partners_devseed"), "https://developmentseed.org/"),
--
[2843fb2ea29383e931c274db6929fcbf] app/controllers/ways_controller.rb:16:in `show'
[2843fb2ea29383e931c274db6929fcbf] app/controllers/application_controller.rb:221:in `web_timeout'
[2843fb2ea29383e931c274db6929fcbf] config/initializers/compressed_requests.rb:27:in `call'
[2843fb2ea29383e931c274db6929fcbf] config/initializers/cors.rb:9:in `call'
[2843fb2ea29383e931c274db6929fcbf] Processing by ErrorsController#internal_server_error as */*
[2843fb2ea29383e931c274db6929fcbf]   Parameters: {"id"=>"198305838"}

full logs here: https://gist.github.com/Rub21/61792fc2b11315971fd515a0208df66f

cc. @erictheise @1ec5

Activity

  1. erictheise commented on Feb 13, 2025

    @erictheise
    Contributor

    I seem to recall that for the sake of keeping in sync with upstream I continued to use the upstream keys (ucl, fastly, etc.) for our GreenInfo and Dev Seed partner credits even though the key name would no longer reflect its content in our context. @1ec5, did you create new keys when you condensed the text of those fields?

  2. erictheise commented on Feb 13, 2025

    @erictheise
    Contributor

    Related to OpenHistoricalMap/ohm-website#264 given the key names showing up in the error.

  3. self-assigned this
    on Feb 13, 2025
  4. added a commit that references this issue on Feb 13, 2025
  5. added a commit that references this issue on Feb 13, 2025
  6. added 2 commits that reference this issue on Feb 13, 2025
  7. added a commit that references this issue on Feb 24, 2025
  8. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions