Cannot make JSON request for hourly

  • 1
  • Problem
  • Updated 3 years ago
I have a developer account, which I believe is the anvil account
http://prntscr.com/740kfz

I can make an HTTP request through my brower request for 
http://api.wunderground.com/api/__KEY__/hourly/q/KS/Olathe.json<br><br>But when I attempt to make a JSON request through my application it returns a 402 error.<br><br>If I switch to a forecast request instead of hourly it works fine. It appears my account does not have hourly access?
Photo of Matt M

Matt M

  • 4 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Matt M

Matt M

  • 4 Posts
  • 0 Reply Likes
Attempted to create a new anvil key from scratch and ran into the same issue.
Photo of Tim Roche

Tim Roche, Official Rep

  • 318 Posts
  • 29 Reply Likes
that URL works fine.  Try pasting that with your key in a browser.

You shouldn't see a 402. I don't think we ever send that response code.
Photo of Matt M

Matt M

  • 4 Posts
  • 0 Reply Likes
Sorry it was my fault the error code is the device side -402, the response (46KB) is too large for the device.
Photo of Matt M

Matt M

  • 4 Posts
  • 0 Reply Likes
Is there any method to limit the response size, or query for less hourly data?
Photo of Tim Roche

Tim Roche, Official Rep

  • 318 Posts
  • 29 Reply Likes
There is not. Sorry.