Black Lives Matter. Please consider donating to Black Girls Code today.

CSV import from URL broken

This question has come up before, but without a satisfactory resolution.

The following valid CSV is not accepted by the Chart Studio Import by URL form:

http://*/landing.csv

It passes CSV validation on https://csvlint.io . I’m matching the content type and line-feeds of working csvs. I’ve been beating my head against this for a year. Any helpful input would be greatly appreciated.

I’ll change the text there, but we only support secure URLs that start with https://, so that’s why your URL is failing to load. The error from the console is

Mixed Content: The page at 'https://plot.ly/create/#/' was loaded over HTTPS, but requested an insecure resource 'http://209.123.151.42/landing.csv'. This request has been blocked; the content must be served over HTTPS.

Okay, the file doesn’t work over https either. That is not the problem. I don’t have that server set up for https, but an identical one fails with https.

If you can serve that file up on HTTPS I can take a look… push it up to github or something?

Here’s your same file, up on Github in a secret Gist: https://gist.githubusercontent.com/nicolaskruchten/0136006adccb2e2bf6c8f1423fd535a1/raw/ee42d044bead4c771f0b63117594b1df9872ccb7/landing.csv

Works ok for me from that URL…

Thank you for that. I’m still beating my head against the wall. I changed my server config to identically match the Content-Type for your working example (and I’ve tried various permutations of mime types and character encodings. Oh well.