satellogic / telluric

telluric is a Python library to manage vector and raster geospatial data in an interactive and easy way
MIT License
87 stars 18 forks source link

404 and 500 errors on Download link & URL Structure #155

Closed samapriya closed 5 years ago

samapriya commented 5 years ago

Why are download templates and link structure different for example

https://telluric.satellogic.com/v2/scenes/newsat4_micro_micro_multiband_faeedef7da5c4d1aba8a925ee8f702fd_0_5_11/rasters/newsat4_micro_micro_multiband_faeedef7da5c4d1aba8a925ee8f702fd_0_5_11_rgb_enhanced.tif/download/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkX3ZlcnNpb24iOiIxLjEiLCJhY3Rpb24iOiJkb3dubG9hZCIsInVzZXJuYW1lIjoib3BlbmltcGFjdCIsInJlc291cmNlIjp7InR5cGUiOiI8Y2xhc3MgJ3NjZW5lMi5tb2RlbHMuUmFzdGVyJz4iLCJpZCI6NDU4OTE5fX0.bbONoi36qVJNunPxSlzH9jE3ton1kRlEdxDR0cEcGjI

compared to 

https://telluric.satellogic.com/v2/scenes/newsat3_micro_micro_multiband_27d9ff08c1d74d669fc23aa6b1976645_0_4_6/token/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkX3ZlcnNpb24iOiIxLjEiLCJhY3Rpb24iOiJkb3dubG9hZCIsInVzZXJuYW1lIjoib3BlbmltcGFjdCIsInJlc291cmNlIjp7InR5cGUiOiI8Y2xhc3MgJ3NjZW5lMi5tb2RlbHMuU2NlbmUnPiIsImlkIjozMDMwNzh9fQ.rqBBaVbnjxxURL2DUnZm-6PvroDIbyYqVwb-y4DIk1s/raster/cdd69f22b3507731a2617d96f9a0128a056b5d17e52a05e9d1d8f1aa3fabc1c8_red.tif

Getting lot of 404 and 500 errors for links here is an example link

https://telluric.satellogic.com/v2/scenes/newsat4_macro_cube_e15505658b3640d6bd479010f780bdec_0_5_11/token/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkX3ZlcnNpb24iOiIxLjEiLCJhY3Rpb24iOiJkb3dubG9hZCIsInVzZXJuYW1lIjoib3BlbmltcGFjdCIsInJlc291cmNlIjp7InR5cGUiOiI8Y2xhc3MgJ3NjZW5lMi5tb2RlbHMuU2NlbmUnPiIsImlkIjozODg0NzB9fQ._co3nTuCjqIBj2CruceizA-FTTYnaigRzoj8q8dhFZw/raster/HyperCube_820_nm.tif

Expected behavior and actual behavior

Steps to reproduce the problem

Operating system and installation details

guydou commented 5 years ago

hi @samapriya, thanks for reporting this issue,

The reason you got this bad behavior was due to a inner team process that caused us to partial deploy a new feature.

We are working on changing the raster url for /rasters/raster.tif?token=fdfdfadf to /scene/token/<token>/raster/raster.tif this is why you saw the two types of urls

The reason some of them did not work for you is that part of the servers were having the old version parts had the new.

If you ask why we change the url, we do that to support relative attached files to rasters, such as overviews and masks

Of-course this shouldn't have happened, and we know what we did wrong in our inner processes.

Servers are now pointing to old version, we will deploy the new version this week.