Skip to content

Fetch API cannot load iris csv. URL scheme "file" is not supported. #11

@davidmjiang

Description

@davidmjiang

I was working through the Iris example in Chapter 15 and trying to replicate it on my computer. Trying to open the html file in my browser, I got an error about fetching a url beginning with "file://" Digging around, I saw that tf.data.csv uses fetch, which in turn does not support fetching local files. I tried to download Brackets, as was suggested in the book, but it appears it is reaching end of support and can no longer be downloaded. Since my usual editor is VSCode, I found that using the Live Server extension can be used as an alternative to serve your files from localhost and fix the the fetch issue. Hope this helps anyone who might face this issue in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions