Skip to content

DataStore calls fail for dati.comune.messina.it due to compressed/binary response #8

Description

@aborruso

Summary

CKAN DataStore calls against https://dati.comune.messina.it fail with a binary/gzip-like payload that our HTTP client doesn't decode, even though the resource has datastore_active=true.

Evidence

  • resource_id: 17301b8b-2a5b-425f-80b0-5b75bb1793e9
  • resource_show confirms: datastore_active=true
  • ckan_datastore_search and ckan_datastore_search_sql both return: "CKAN API returned success=false" with binary/gzip payload.
  • Example SQL: SELECT * FROM "17301b8b-2a5b-425f-80b0-5b75bb1793e9" LIMIT 5

Expected

Datastore responses should be decoded and parsed as JSON.

Suspected cause

HTTP client is not handling gzip/br/deflate responses from this portal.

Proposed fix

Ensure response decompression (gzip/br/deflate) before JSON parsing, or set Accept-Encoding/responseType appropriately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions