8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / application / api_error.html.erb
1 <h2>Oh... fiddlesticks.</h2>
2
3 <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.
4
5 <% if not api_error %>
6 </p>
7 <% else %>
8 If that doesn't work, the information below can help system administrators track down the problem.
9 </p>
10
11 <dl>
12   <dt>API request URL</dt>
13   <dd><code><%= api_error.request_url %></code></dd>
14
15   <% if api_error.api_response.empty? %>
16   <dt>Invalid API response</dt>
17   <dd><%= api_error.api_response_s %></dd>
18   <% else %>
19   <dt>API response</dt>
20   <dd><pre><%= Oj.dump(api_error.api_response, indent: 2) %></pre></dd>
21   <% end %>
22 </dl>
23 <% end %>
24
25 <%= render :partial => "report_error", :locals => {api_error: api_error, error_type: 'api'} %>