<p>We surround certain web requests with a timeout handler. (API requests are handled separately). However, it returns a full web page with layout, which can lead to unexpected results when an html fragment was expected.</p>
<p>For example, <code>app/controllers/changesets_controller.rb#index</code> normally does a</p>
<div class="highlight highlight-source-ruby"><pre>render <span class="pl-c1">:action</span> => <span class="pl-c1">:index</span>, <span class="pl-c1">:layout</span> => <span class="pl-c1">false</span></pre></div>
<p>But when it times out you get a mess like this:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/360803/66922716-e5b8e000-f027-11e9-9311-cd79c0595af7.png"><img src="https://user-images.githubusercontent.com/360803/66922716-e5b8e000-f027-11e9-9311-cd79c0595af7.png" alt="Screenshot from 2019-10-16 12-13-34" style="max-width:100%;"></a></p>
<p>It might be possible to solve with refactoring in the controllers, so e.g. using 'layout false' at the  class level instead of on individual <code>render</code> calls.</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/issues/2399?email_source=notifications&email_token=AAK2OLMZGFB5WSCVLYLGY6TQO4JIJA5CNFSM4JBLQ5D2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSFG3TQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMWQTELY6NYHKE3Q2LQO4JIJANCNFSM4JBLQ5DQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLKRJUBT3VNMHQSKZQTQO4JIJA5CNFSM4JBLQ5D2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSFG3TQ.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/issues/2399?email_source=notifications\u0026email_token=AAK2OLMZGFB5WSCVLYLGY6TQO4JIJA5CNFSM4JBLQ5D2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSFG3TQ",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2399?email_source=notifications\u0026email_token=AAK2OLMZGFB5WSCVLYLGY6TQO4JIJA5CNFSM4JBLQ5D2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSFG3TQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>