Project

General

Profile

Actions

Bug #5182

closed

[Workbench] CORS error uploading via browser - better JS error handling needed

Added by Peter Amstutz about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench
Target version:
Story points:
0.5

Description

Firefox 35.0.1 on OS X 10.6.8

Trying to upload via browser

Javascript console:

The connection to wss://ws.qr1hi.arvadosapi.com/websocket?api_token=xxx was interrupted while the page was loading. application-1de82a2a4d45ee318cb51cf20380c35d.js:59619
OPTIONS https://keep.qr1hi.arvadosapi.com/ [HTTP/1.1 503 Service Temporarily Unavailable 53ms]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://keep.qr1hi.arvadosapi.com/. This can be fixed by moving the resource to the same domain or enabling CORS. keep.qr1hi.arvadosapi.com
"slice 0: error, retry 1" application-1de82a2a4d45ee318cb51cf20380c35d.js:63084
OPTIONS https://keep.qr1hi.arvadosapi.com/ [HTTP/1.1 503 Service Temporarily Unavailable 54ms]
"slice 0: error, retry 2" application-1de82a2a4d45ee318cb51cf20380c35d.js:63084

If file upload fails, the user should get an error.


Files

5182-network-error.png (27.4 KB) 5182-network-error.png Tom Clegg, 03/10/2015 02:11 PM
5182-mixed-content-error.png (22.5 KB) 5182-mixed-content-error.png Tom Clegg, 03/10/2015 02:20 PM

Subtasks 3 (0 open3 closed)

Task #5272: Detect CORS failure and display error messageResolvedTom Clegg02/09/2015Actions
Task #5419: Document how to set CORS headers on nginx proxyResolvedTom Clegg02/09/2015Actions
Task #5427: Review 5182-cors-error-reportingResolvedRadhika Chippada02/09/2015Actions

Related issues

Related to Arvados Workbench 2 - Bug #13564: [Workbench] Uploader should have a timeoutNewActions
Actions

Also available in: Atom PDF