Author Topic: NWS Access Denied - Saratoga Template  (Read 267 times)

0 Members and 1 Guest are viewing this topic.

Offline fdrtech

  • Member
  • *
  • Posts: 11
    • Oakdake, CA Weather
NWS Access Denied - Saratoga Template
« on: March 07, 2024, 08:42:54 PM »
The NWS forecast is not loading. It gives an error message " https://api.weather.gov/zones/forecast//forecast has an error." When viewing the page source it states Access Denied.

Code: [Select]
<!-- getting metadata for forecast zone from https://api.weather.gov/zones/forecast/CAZ019 -->
<!-- logged 'Fetch fail' to './cache/advforecast2-log-2024-03-07.txt' -->
<!-- curl fetching 'https://api.weather.gov/zones/forecast/CAZ019' -->
<!-- HTTP stats:  RC=403 dest=23.61.212.18 port=443 (from sce=198.187.29.141)
      Times: dns=0.000 conn=0.201 pxfer=0.216 get=0.015 total=0.231 secs -->
<!-- headers returned:
HTTP/2 403
server: AkamaiGHost
mime-version: 1.0
content-type: text/html
content-length: 294
cache-control: max-age=0
expires: Fri, 08 Mar 2024 01:41:23 GMT
date: Fri, 08 Mar 2024 01:41:23 GMT
x-cache: TCP_DENIED from a23-213-247-113.deploy.akamaitechnologies.com (AkamaiGHost/11.4.2.2-54697487) (-)
x-edge-request-id: b27c8976
vary: Accept,Feature-Flags,Accept-Language
strict-transport-security: max-age=31536000 ; includeSubDomains ; preload
x-akamai-request-id: b27c8976
 -->
<!-- JSON ERROR with Zone metadata content='<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
 

Ideas?

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: NWS Access Denied - Saratoga Template
« Reply #1 on: March 07, 2024, 08:49:18 PM »
I can't help but I know a Link to your site will be helpful (needed).

CW3699

Offline fdrtech

  • Member
  • *
  • Posts: 11
    • Oakdake, CA Weather
Re: NWS Access Denied - Saratoga Template
« Reply #2 on: March 07, 2024, 08:54:45 PM »
weather.fdrtech.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Access Denied - Saratoga Template
« Reply #3 on: March 08, 2024, 02:30:15 PM »
Your website may have been added to the NWS naughty list for excessive accesses to the API.  Usually, it will auto-remove after some time elapsed,

Looks like your site is again getting data https://weather.fdrtech.com/wxforecast.php
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline fdrtech

  • Member
  • *
  • Posts: 11
    • Oakdake, CA Weather
Re: NWS Access Denied - Saratoga Template
« Reply #4 on: March 08, 2024, 05:58:54 PM »
I think that is what happened also. I sometimes get spammed by bots with a GET request. But blocking them works.

Thanks

 

anything