GlobalFishingWatch / gfwr

R package for accessing data from Global Fishing Watch APIs
https://globalfishingwatch.github.io/gfwr/
Apache License 2.0
59 stars 7 forks source link

Authorization error with `get_eez_code` #45

Closed saraorofino closed 2 years ago

saraorofino commented 2 years ago

This seems similar to a closed issue on authorization (#34) for get_raster(). I can run the family of get_* functions without errors, get_raster, get_vessel_info, and get_event have all worked fine for me. But when I run the get_eez_code function I get an authorization error.

I've run these two lines from the README:

code_eez <- get_eez_code(eez_name = 'CIV', key = key) 
get_eez_code(eez_name = 'French', key = key)

And in both cases I get this error:

Error in `resp_abort()`:
! HTTP 404 Not Found.

I've also tried with other EEZ names and iso3 codes and the same thing happens.

CianGFW commented 2 years ago

I've run into the same error:

Error in `resp_abort()`:
! HTTP 404 Not Found.
---
Backtrace:
  1. gfwr::get_eez_code(eez_name = "French", key = key)
  9. httr2::req_perform(.)
 10. httr2:::resp_abort(resp, error_body(req, resp))
natemiller commented 2 years ago

@saraorofino @CianGFW There was an issue on the API side that should be fixed now.