BrowserFS icon indicating copy to clipboard operation
BrowserFS copied to clipboard

"Error: undefined: XHR error." when running on file://

Open 1j01 opened this issue 7 years ago • 1 comments

It fails because it gets a status of 0 and decides that's a failure, even tho the response data is there.

That is not a pretty error message: not a pretty error message

Now, if there are reasons for this to not be supported (using --allow-file-access-from-files for chrome), the error could at least say something about that; but I can't think of why it shouldn't be able to work.

1j01 avatar Mar 30 '18 04:03 1j01

Agreed that the error message could be better, but note that this is a project maintained by one person in his spare time. I assumed that the status would be 200 on a success, and didn't think about accessing file:// URLs where HTTP status codes don't apply.

Seems like an easy fix. I'll happily accept a PR, otherwise I'll try to get to this soon.

jvilk avatar Mar 30 '18 04:03 jvilk

Closing since BrowserFS has stopped using XHR.

james-pre avatar Sep 15 '23 16:09 james-pre