<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/note/849265" rel="nofollow">https://www.openstreetmap.org/note/849265</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<p dir="auto">Hi,</p>
<p dir="auto">While editing in JOSM (18699 and 18678), I was downloading data and notes for small areas and several notes appeared in a layer. Some of these notes were valid but some of them had empty contents and when visiting these URLs in the browser, they returned a 500 error.</p>
<p dir="auto">I checked the terminal, JOSM made these API calls were made to obtain the notes:</p>
<pre class="notranslate"><code class="notranslate">
2023-03-31 10:58:08.564 INFO: GET https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.4890289,41.2037145,-81.4419937,41.2762584 -> HTTP/1.1 200 (534 ms; 339 B)

2023-03-31 19:34:31.375 INFO: GET https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.6465148,41.1896413,-81.6446695,41.1905042 -> HTTP/1.1 200 (422 ms; 339 B)
</code></pre>
<p dir="auto">Both of these API calls (which appear to be valid API calls per <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Search_for_notes:_GET_/api/0.6/notes/search" rel="nofollow">https://wiki.openstreetmap.org/wiki/API_v0.6#Search_for_notes:_GET_/api/0.6/notes/search</a>) return data stating there are open notes in these bounding boxes</p>
<p dir="auto">The first API call - <a href="https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.4890289,41.2037145,-81.4419937,41.2762584" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.4890289,41.2037145,-81.4419937,41.2762584</a></p>
<p dir="auto">returns data that states there is an open note with <a href="https://www.openstreetmap.org/note/849265" rel="nofollow">https://www.openstreetmap.org/note/849265</a></p>
<p dir="auto">full response of that API call</p>
<pre class="notranslate"><code class="notranslate">
<osm version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<note lon="-81.4644814" lat="41.2050060">
<id>849265</id>
<url>https://api.openstreetmap.org/api/0.6/notes/849265</url>
<comment_url>
https://api.openstreetmap.org/api/0.6/notes/849265/comment
</comment_url>
<close_url>
https://api.openstreetmap.org/api/0.6/notes/849265/close
</close_url>
<date_created>2017-01-12 05:49:33 UTC</date_created>
<status>open</status>
<comments> </comments>
</note>
</osm>
</code></pre>
<p dir="auto">Visiting <a href="https://api.openstreetmap.org/api/0.6/notes/849265" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes/849265</a> returns data stating there is a note but trying to visit that note's URL - <a href="https://www.openstreetmap.org/note/849265" rel="nofollow">https://www.openstreetmap.org/note/849265</a> it leads to a 500 error.</p>
<p dir="auto">The second API call <a href="https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.6465148,41.1896413,-81.6446695,41.1905042" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.6465148,41.1896413,-81.6446695,41.1905042</a><br>
returns a note with the status of open,  <a href="https://www.openstreetmap.org/note/849270" rel="nofollow">https://www.openstreetmap.org/note/849270</a> which leads to a 500 error.</p>
<p dir="auto"><strong>To reproduce:</strong></p>
<ol dir="auto">
<li>
<p dir="auto">Visit <a href="https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.6465148,41.1896413,-81.6446695,41.1905042" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.6465148,41.1896413,-81.6446695,41.1905042</a><br>
and<br>
<a href="https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.4890289,41.2037145,-81.4419937,41.2762584" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes?limit=1000&closed=7&bbox=-81.4890289,41.2037145,-81.4419937,41.2762584</a></p>
</li>
<li>
<p dir="auto">Read response, try to obtain the URLs for the notes given the note ids in the responses.</p>
</li>
</ol>
<p dir="auto">or visit said location of the <a href="https://api.openstreetmap.org/api/0.6/notes/849265" rel="nofollow">https://api.openstreetmap.org/api/0.6/notes/849265</a> -<br>
(e.g. <a href="https://www.openstreetmap.org/#map=15/41.2050/-81.4645&layers=N" rel="nofollow">https://www.openstreetmap.org/#map=15/41.2050/-81.4645&layers=N</a> ) - no note appears in the browser.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><em>No response</em></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3994">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJJYPX7VETZ3LJOEB3W65VZLANCNFSM6AAAAAAWPHXSII">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLYLBFWCCX6547KDWTW65VZLA5CNFSM6AAAAAAWPHXSIKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGEW6ZUY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3994</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3994",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3994",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>