When using the search function on wheelmap.org it returns a 500 Internal Server Error. In the backend it outputs 301 Moved Permanently which indicates that it might be related to the https move by openstreetmap from 2018-05-07 on.
Completed 500 Internal Server Error in 185ms (ActiveRecord: 11.3ms)
JSON::ParserError (795: unexpected token at '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://nominatim.openstreetmap.org/search?accept-language=de&dedupe=1&email=info%40wheelmap.org&format=json&limit=10&q=asquera">here</a>.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at nominatim.openstreetmap.org Port 80</address>
</body></html>
'):
app/controllers/search_controller.rb:38:in `block (2 levels) in index'
app/controllers/search_controller.rb:22:in `index'
lib/rack_i18n_locale_switcher.rb:29:in `call'
Background
When using the search function on wheelmap.org it returns a
500 Internal Server Error
. In the backend it outputs301 Moved Permanently
which indicates that it might be related to the https move by openstreetmap from 2018-05-07 on.Story
Affected links (staging and production): https://staging.wheelmap.org/search?q=something https://wheelmap.org/search?q=something
As a user When I type in a search term in the search input field I want to get a result based on my search term