GlobalFishingWatch / gfwr

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

Cause of "Error in abort()" message? #91

Closed adeloera closed 1 year ago

adeloera commented 1 year ago

Hi! I'm wondering if the cause of the an error message "Error in abort(): A message must be a character vector, not a list." is known. I get it occasionally, but also inconsistently, on get_events() calls for fishing events. Sometimes I get it when trying to extract events as part of a loop, but the code runs fine outside of a loop. Not really sure what is going on there--curious if anyone knows what I could do!

image

adeloera commented 1 year ago

For what it's worth this particular time I got it trying to run fishing_events <- get_event(event_type = "fishing", start_date = "2016-01-01", end_date = "2016-12-31")

But I've gotten it before on much smaller calls when trying to loop through several vessels and extract all their fishing events.

eastonwhite commented 1 year ago

The issue appears to still come up when using region_source = 'trfmo' even if using a short time frame. I am guessing this is due to the larger spatial range.

tclavelle commented 1 year ago

This was addressed by PR #100. Use region_source = 'rfmo' now because there are non-tuna RFMOs that can specified.