Repository navigation
Closed
Description
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.
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
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsIn Production
Activity
erictheise commentedon Feb 13, 2025
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?erictheise commentedon Feb 13, 2025
Related to OpenHistoricalMap/ohm-website#264 given the key names showing up in the error.
Fixes OpenHistoricalMap/issues#972 by removing all references to {ucl…
Merge pull request #271 from OpenHistoricalMap/972-user-reported-erro…
Fixes OpenHistoricalMap/issues#972 by removing all references to {ucl…
Merge pull request #478 from OpenHistoricalMap/972-user-reported-erro…
Fixes OpenHistoricalMap/issues#972 by removing all references to {ucl…