alexander0042 / alexander0042.github.io

Public Website for Pirate Weather API
7 stars 1 forks source link

"TypeError: NetworkError when attempting to fetch resource." #1

Closed giddyhup closed 3 years ago

giddyhup commented 3 years ago

Great idea. Thanks for the service. I get a forbidden/403 response with my API key. Is the account already over its limit? Am I missing something?

https://api.pirateweather.net/forecast/{key}/43.000000,-75.000000

xplusplus commented 3 years ago

I'm seeing this issue as well. I just registered, and I shouldn't have gotten throttled yet. Each attempt to call the API results in a 403.

alexander0042 commented 3 years ago

Thanks for pointing out this issue- I'm sorry that I missed it earlier! The most likely reason here is the API subscription- it's really easy to miss this step, but you'll get a 403 without it. Can you check that when you go to https://pirateweather.net/apis, you're subscribed to the PirateForcast Beta stage? It should be a green button underneath the API name.

giddyhup commented 3 years ago

As far as I am concerned, my issue is solved as per the exchange via reddit. I leave this open for @xplusplus.

xplusplus commented 3 years ago

Ah, I was not subscribed. Now it works as expected. Thank you very much!

giddyhup commented 3 years ago

and thus I can close this.