Skip to content

CKAN plugin does not support brotli encoding #31

@psiotwo

Description

@psiotwo
  1. CKAN plugin calls the SPARQL endpoint with Accept-encoding: gzip, deflate, br (defaults of the http client used).
  2. CKAN plugin receives Content-encoding: br but can't decompress it.

Error from logs:

docker logs lindas-test

Error: Decompression failed
at genericNodeError (node:internal/errors:983:15)
at BrotliDecoder.zlibOnError [as onerror] (node:zlib:190:17)

Tested locally:

  1. Trifid run with updated node_modules/lindas-trifid-plugin-ckan/src/ckan.js
  2. Test CKAN endpoint:
    curl "http://localhost:8080/ckan?organization=https://register.ld.admin.ch/opendataswiss/org/elcom"
    HTTP: 200, Time: ~1s

curl "http://localhost:8080/ckan?organization=https://register.ld.admin.ch/opendataswiss/org/bundesamt-fur
-umwelt-bafu"
HTTP: 200, Time: ~1.7s, 3957 lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions