question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to load .xyz from url ?

See original GitHub issue

I am trying to load .xyz from URL. I have tested a Dropbox url and a Slack url but Mol* does not show the molecule. Could you suggest how to load .xyz from url ?

The log at the bottom of the webpage shows the following

10:58:29 Failed to download data. Possible reasons: Resource is not available, or CORS is not allowed on the server.
10:58:29 Error: Invalid data cell.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arosecommented, Jul 2, 2021

Hi @jiucenglou, CORS is a set of security restriction in web browsers that allow you to safely browse the internet. Command line tools like wget or curl do not have/need such protections. In addition to the services @dsehnal suggested there is also Github pages which is essentially free (if you don’t have much traffic).

In principal you can write a web application that authenticates with Slack or Dropbox and get the files from there but that means visitors need to have an account with Slack or Dropbox and it is outside the scope of Mol*.

1reaction
dsehnalcommented, Jun 30, 2021

Well, the Dropbox URL doesn’t point to the file itself and the Slack URL requires a login to access, so neither of these will work. If you want CORS, you might have to use Google Cloud or Amazon S3 or something along the lines where you can allow CORS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XYZ - OpenLayers
The XYZ source is used for tile data that is accessed through URLs that include a zoom level and tile grid x/y coordinates....
Read more >
Generate own XYZ Tile (MBTiles) - which URL?
Rename the mbtiles file, changing its file extentsion to .zip. You can then open it, and upload the contents. – Tom Chadwin. Apr...
Read more >
Adding XYZ Tiles to a QGIS Project
In the XYZ Connection window, provide a name appropriate for the service you are connecting to, and enter the URL of the tile...
Read more >
3 - Stack Overflow
Change URL from www.xyz.com/abc.php to www.xyz.com/abc [closed] · Ask Question. Asked 4 years, 8 months ...
Read more >
Discover XYZ Tile layers in ArcGIS platform - Esri BeLux
They can be found on the website Cartesius, where they are also directly available in an ArcGIS Online environment. They all follow the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found