Replies: 7 comments 18 replies
-
I'm seeing something similar, although in my case this is from C# code. I am adding a User-Agent header, is there another header that is required? Think I'll have to dig around some more. |
Beta Was this translation helpful? Give feedback.
-
The number after the status code is the content length, and not very relevant, although it does hint at the actual problem, which is a known issue. The fix requires replacing a web service that randomly provides invalid response. That response gets cached by our CDN, which is why requests from postman can vary from your application, as it is likely hitting a different CDN cache pool. You can verify this by looking at the correlation id in the response header. A new one is assigned every time a request reaches an origin server. The effort to replace this service has finally made it to the top and should be resolved later this year (giving time to get though testing and the NCO deployment process). |
Beta Was this translation helpful? Give feedback.
-
I think I'm seeing the same issue. Getting old data sometimes, correct data other times. Is there a way to verify this is the same issue? Here is the response header for a case where old data was sent... {x-edge-request-id: fcec9b79, connection: keep-alive, last-modified: Sun, 08 Aug 2021 21:00:00 GMT, cache-control: public, max-age=236, s-maxage=3600, access-control-allow-origin: *, date: Fri, 06 Aug 2021 20:25:42 GMT, vary: Accept-Encoding,Accept,Feature-Flags,Accept-Language, content-encoding: gzip, strict-transport-security: max-age=31536000 ; includeSubDomains ; preload, x-correlation-id: c9577a7, content-type: application/geo+json, server: nginx/1.16.1, x-request-id: f06e7f92-a4c1-4941-aabc-510e92f1e0d3, x-server-id: vm-bldr-nids-apiapp8.ncep.noaa.gov, access-control-allow-headers: Feature-Flags, content-length: 3454, expires: Fri, 06 Aug 2021 20:29:38 GMT} |
Beta Was this translation helpful? Give feedback.
-
I'm seeing old data returned as well. Please see below for an example from yesterday. The requests from the Android app I'm developing received partially out of date data. I didn't see a future last-modified date, but rather the forecast period was showing that it was daytime when a fetch using a browser showed (correctly) that it was night. The correlation ID and server ID are different, so the responses are coming from different places. Is there a reasonably reliable workaround? This is a critical issue for a weather app. Thanks! Summary:
Headers:
|
Beta Was this translation helpful? Give feedback.
-
Hopefully this will help someone: |
Beta Was this translation helpful? Give feedback.
-
Hi Am am trying to teach some kids to to program and I thought I'd use this API as an example. I am also getting the strange behavior. The data will not update even from different machines. The last update, header, is a year into the future. Are there any specific headers I should send other than the user-agent? Status: 200 |
Beta Was this translation helpful? Give feedback.
-
As mentioned in #492 we are testing out a change to the caching on our pre-production site which should provide more reliable forecast data. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - It seems I have the old data problem recently. I wrote a python script to fetch weather forecast data once every 2 hours, and received the old weather data about 2 days ago. Please check my log file as below. After two weather info about July 12, the server provided the data of July 10. I think maybe something related to the number after the http code 200, what do they mean (3579 and 3647)?
"Data timestamps" is the weather information updating time in the retrieved data.
Beta Was this translation helpful? Give feedback.
All reactions