wind-js-server icon indicating copy to clipboard operation
wind-js-server copied to clipboard

Fix the 404 on the data URL link

Open ghost opened this issue 5 years ago • 6 comments

The URL was invalid and threw a 404. The service changed the dir parameter and the roundHours had to be preceded by a forward slash.

image

ghost avatar Sep 02 '19 23:09 ghost

It seems that some data when fetched still give me the 404 error after your changes. Are you experiencing this?

AmirFarhan avatar Sep 05 '19 02:09 AmirFarhan

Hmm, I noticed only one 404 in my logs and that was on a request for September 5, which is in the future and the data doesn't look like is uploaded yet. Other than that json-data had everything in it. What request so you get the 404 on?

ghost avatar Sep 05 '19 02:09 ghost

screenshot

ghost avatar Sep 05 '19 02:09 ghost

That would be one of them. The others, if you wait long enough, will appear and it seems like they do starting from 26th of August (backwards). Perhaps the NOAA will eliminate their old data after a certain period of time?

Screen Shot 2019-09-05 at 10 57 57 AM

AmirFarhan avatar Sep 05 '19 03:09 AmirFarhan

I have applied this update but am running into an issue:

GET http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t18z.pgrb2.1p00.f000&lev_10_m_above_ground=on&lev_surface=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=/gfs.20210405/18&
running server on port 7000
response 404 | 2021040518
GET http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t12z.pgrb2.1p00.f000&lev_10_m_above_ground=on&lev_surface=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=/gfs.20210405/12&
response 404 | 2021040512
GET http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t06z.pgrb2.1p00.f000&lev_10_m_above_ground=on&lev_surface=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=/gfs.20210405/06&
response 404 | 2021040506
GET http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&lev_surface=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=/gfs.20210405/00&
response 404 | 2021040500

LukePrior avatar Apr 05 '21 23:04 LukePrior

The url format has changed again recently. For anyone running into this issue, I try to mantain a slighlty refactored fork with working download at https://github.com/Flowm/wind-server.

Flowm avatar Apr 06 '21 03:04 Flowm