<blockquote>
<p>Do you really need || "" in all these render calls? I suspect (but haven't tested) that most calls will work without them.</p>
</blockquote>
<p>If you take <code>/map</code> as an example, the call might actually fail with "<em>API threw unexpected ActionView::Template::Error exception: no implicit conversion of nil into String</em>", in case there are only nodes and ways, but no relations in the bbox, and you don't supply <code>|| ""</code> as a fallback.</p>
<p>Pretty much the same applies to /nodes, /ways, and /relations, which could return some empty result. HIstory and version calls might not return anything in case of redacted object versions.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications&email_token=AAK2OLOEGJELZIA2VVYFORLP4PB3NA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUT6LY#issuecomment-506019631">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKAMNIVUVAOWRB6ILDP4PB3NANCNFSM4HLMFYOQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLJUELQLR2KBQ5KB2UDP4PB3NA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUT6LY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLOEGJELZIA2VVYFORLP4PB3NA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUT6LY#issuecomment-506019631",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2223?email_source=notifications\u0026email_token=AAK2OLOEGJELZIA2VVYFORLP4PB3NA5CNFSM4HLMFYO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUT6LY#issuecomment-506019631",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>