ndjson file structure - issue with last line

94 views
Skip to first unread message

Edisnel C. C.

unread,
May 13, 2024, 1:32:34 PM5/13/24
to Beneficiary Claims Data API (BCDA) Community
Hello BCDA team

In the last download I had an issue processing one of the files.

The last line of the file does not have an adequate structure, as it does not correctly close the json structure and perhaps information is missing in the file.

Could you please help me on this?

JobID: 70417
(See attachment to verify how the file is ending.)

Is there any way you can provide me with that last line? I can provide you all the information so you retrieve that particular claim.

Thank for your support
last_line.JPG

Beneficiary Claims Data API (BCDA) Community

unread,
May 16, 2024, 11:15:07 AM5/16/24
to Beneficiary Claims Data API (BCDA) Community
Hi Edisnel,

Sorry for the issue downloading the file. We've found that the download timed out and the connection was closed before the download was completed. This resulted in the returned file being truncated.

Our investigation also revealed a bug in how BCDA processes the Accept-Encoding header in download requests when more than one encoding option is provided. We have a fix for this issue that will be available in our next release.

In the meantime, we recommend requesting the job once again, then downloading the files using the header "Accept-Encoding: gzip" without any other encodings included in the header. This workaround will ensure the file is sent compressed, speeding up your download time and staying below the timeout limit.

Thanks,
The BCDA Team
Reply all
Reply to author
Forward
0 new messages