Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / application / api_error.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <h2>Oh... fiddlesticks.</h2>
6
7 <p>An error occurred when Workbench sent a request to the Arvados API server.  Try reloading this page.  If the problem is temporary, your request might go through next time.
8
9 <% if not api_error %>
10 </p>
11 <% else %>
12 If that doesn't work, the information below can help system administrators track down the problem.
13 </p>
14
15 <dl>
16   <dt>API request URL</dt>
17   <dd><code><%= api_error.request_url %></code></dd>
18
19   <% if api_error.api_response.empty? %>
20   <dt>Invalid API response</dt>
21   <dd><%= api_error.api_response_s %></dd>
22   <% else %>
23   <dt>API response</dt>
24   <dd><pre><%= Oj.dump(api_error.api_response, indent: 2) %></pre></dd>
25   <% end %>
26 </dl>
27 <% end %>
28
29 <%= render :partial => "report_error", :locals => {api_error: api_error, error_type: 'api'} %>