Hi Scott, you?re right about this issue, I?ll investigate what?s happening 
there.

Bests, Federico Mendez.

From: API-users <api-users-bounces at lists.gbif.org<mailto:api-users-bounces 
at lists.gbif.org>> on behalf of Scott Chamberlain <myrmecocystus at 
gmail.com<mailto:myrmecocys...@gmail.com>>
Date: Friday 10 November 2017 at 19:53
To: "api-users at lists.gbif.org<mailto:api-users at lists.gbif.org>" 
<api-users at lists.gbif.org<mailto:api-users at lists.gbif.org>>
Subject: [API-users] /occurrence/download route sometimes give size: 0

Hi,

Just ran into this, not sure how often it happens, but sometimes size value is 
zero when at least I don't think it should be:

?  curl https://api.gbif.org/v1/occurrence/download/0000739-171109162308116 | 
jq .
{
  "key": "0000739-171109162308116",
  "doi": "doi:10.15468/dl.jmachn",
  "license": "http://creativecommons.org/licenses/by/4.0/legalcode";,
  "request": {
    "predicate": {
      "type": "greaterThanOrEquals",
      "key": "ELEVATION",
      "value": "11000"
    },
    "format": "DWCA",
    "sendNotification": false
  },
  "created": "2017-11-10T18:37:35.542+0000",
  "modified": "2017-11-10T18:38:54.444+0000",
  "status": "SUCCEEDED",
  "downloadLink": 
"http://api.gbif.org/v1/occurrence/download/request/0000739-171109162308116.zip";,
  "size": 0,
  "totalRecords": 14064,
  "numberDatasets": 105
}

The file ends up having data in it, so it's not size 0.

Best,
Scott Chamberlain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.gbif.org/pipermail/api-users/attachments/20171113/e2894cb7/attachment.html>

Reply via email to