wpgp / wopr

An R package and Shiny application to provide API access to the WorldPop Open Population Repository (WOPR)
https://apps.worldpop.org/woprVision
GNU General Public License v3.0
36 stars 7 forks source link

COD database debugging #8

Closed doug-leasure closed 4 years ago

doug-leasure commented 4 years ago

@bondarenkom When I try to use wopr::getPop() to query the COD database using dev_server/v1/wopr/polytotal , I get this error:

$status [1] "finished"

$error [1] TRUE

$error_message [1] "Internal File Error."

$taskid [1] "1fef3886-3817-550c-991d-11587a62558c"

$startTime [1] "2019-12-05 21:52:34.275152"

$endTime [1] "2019-12-05 21:52:34.523026"

$executionTime [1] 0

Any ideas? Can you tell me what "Internal File Error" means so maybe it will help me figure out the issue on my end?

I am using the same geojson that works with this link:

http://10.19.100.66/v1/wopr/polytotal?iso3=COD&ver=1.0&&geojson={%22type%22:%22FeatureCollection%22,%22features%22:[{%22type%22:%22Feature%22,%22properties%22:{},%22geometry%22:{%22type%22:%22Polygon%22,%22coordinates%22:[[[16.94091796875,-4.127285323245357],[17.5341796875,-4.127285323245357],[17.5341796875,-3.5572827265412794],[16.94091796875,-3.5572827265412794],[16.94091796875,-4.127285323245357]]]}}]}

doug-leasure commented 4 years ago

I resolved this. It was because R was converting version 1.0 into version 1. I just made it ver="1.0" and it worked.