Giter VIP home page Giter VIP logo

Comments (5)

AntonKhorev avatar AntonKhorev commented on June 27, 2024 1

Caused by spaces in image url. Kramdown doesn't urlencode them in its document tree.

from openstreetmap-website.

SomeoneElseOSM avatar SomeoneElseOSM commented on June 27, 2024

If it would help, I can edit it to see if that "fixes" anything - I'll not do that yet though.

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 27, 2024

Log from production:

[ZmcC5886Iahkww7zrNg8dgAAJy0] Started GET "/user/SomeoneElse/diary/404191" for xxx at 2024-06-10 13:43:03 +0000
[ZmcC5886Iahkww7zrNg8dgAAJy0] Processing by DiaryEntriesController#show as HTML
[ZmcC5886Iahkww7zrNg8dgAAJy0]   Parameters: {"display_name"=>"SomeoneElse", "id"=>"404191"}
[ZmcC5886Iahkww7zrNg8dgAAJy0]   Rendered layout layouts/site.html.erb (Duration: 89.8ms | Allocations: 23500)
[ZmcC5886Iahkww7zrNg8dgAAJy0] Completed 500 Internal Server Error in 129ms (Allocations: 32521)
[ZmcC5886Iahkww7zrNg8dgAAJy0]   
[ZmcC5886Iahkww7zrNg8dgAAJy0] ActionView::Template::Error (bad URI(is not URI?): "https://map.atownsend.org.uk/tmp/Screenshot 2024-05-29 224839.png"):
[ZmcC5886Iahkww7zrNg8dgAAJy0]     21: <% end -%>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     22: <%= tag.link :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") %>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     23: <%= tag.meta :name => "description", :content => "OpenStreetMap is the free wiki world map." %>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     24: <%= opengraph_tags(@title, @og_image) %>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     25: <% if flash[:matomo_goal] -%>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     26: <%= tag.meta :name => "matomo-goal", :content => flash[:matomo_goal] %>
[ZmcC5886Iahkww7zrNg8dgAAJy0]     27: <% end -%>
[ZmcC5886Iahkww7zrNg8dgAAJy0]   
[ZmcC5886Iahkww7zrNg8dgAAJy0] app/helpers/open_graph_helper.rb:7:in `opengraph_tags'
[ZmcC5886Iahkww7zrNg8dgAAJy0] app/views/layouts/_meta.html.erb:24
[ZmcC5886Iahkww7zrNg8dgAAJy0] app/views/layouts/_head.html.erb:11
[ZmcC5886Iahkww7zrNg8dgAAJy0] app/views/layouts/_head.html.erb:1
[ZmcC5886Iahkww7zrNg8dgAAJy0] app/views/layouts/site.html.erb:3
[ZmcC5886Iahkww7zrNg8dgAAJy0] config/initializers/compressed_requests.rb:27:in `call'
[ZmcC5886Iahkww7zrNg8dgAAJy0] config/initializers/cors.rb:9:in `call'
[ZmcC5886Iahkww7zrNg8dgAAJy0] Processing by ErrorsController#internal_server_error as HTML
[ZmcC5886Iahkww7zrNg8dgAAJy0]   Parameters: {"display_name"=>"SomeoneElse", "id"=>"404191"}
[ZmcC5886Iahkww7zrNg8dgAAJy0]   Rendered layout layouts/error.html.erb (Duration: 4.5ms | Allocations: 1996)
[ZmcC5886Iahkww7zrNg8dgAAJy0] Completed 500 Internal Server Error in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms | Allocations: 2761)

from openstreetmap-website.

nenad-vujicic avatar nenad-vujicic commented on June 27, 2024

Dear @deevroman ,

Perhaps you could try to edit it and replace ' ' (space characters) with %20 (in above case URL should be https://map.atownsend.org.uk/tmp/Screenshot%202024-05-29%20224839.png) as a temporary workaround?

Thanks,
Nenad.

from openstreetmap-website.

SomeoneElseOSM avatar SomeoneElseOSM commented on June 27, 2024

I''v taken the spaces out.

from openstreetmap-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.