gbif / gbif-api

GBIF API
Apache License 2.0
27 stars 5 forks source link

occ_search problem rendering data #86

Open vmzomdav opened 2 years ago

vmzomdav commented 2 years ago

I keep on getting this error message from the occ_search at different interval.

geometry is big, querying BBOX, then pruning results to polygon Error: lexical error: invalid char in json text. el1":{"gid":"NOR.1_1","name":Could not write JSON: (was java (right here) ------^

It works when I rerun but then stops after a while. I am searching with geometry.

here is the script: dump<- occ_search(geometry=pa_wkt, geom_big = "bbox", start = start_from_record, limit = number_of_record_per_page, fields =('gbifID','datasetKey','institutionCode','year','basisOfRecord','occurrenceStatus','taxonKey','kingdom','phylum','class', 'order','family','genus','species','taxonRank','individualCount','country','countryCode','decimalLatitude','decimalLongitude','coordinateUncertaintyInMeters','license'))$data

here is the error message in R occ_search_message_error

here is the wkt pa_wkt.txt