Skip to content

Laconic error message with invalid JsonLd #63

@ununhexium

Description

@ununhexium

Version: EDC v0.11+, likely the same problem on 0.14.

This message returns HTTP 400 on /catalog/request

{
  "@context": {
      "@vocab": "https://w3id.org/edc/v0.0.1/ns/"
  },
  "@type": "CatalogRequest",
  "protocol": "dataspace-protocol-http",
  "edc:counterPartyAddress": "{{PROVIDER_DSP}}",
  "edc:counterPartyId": "{{PROVIDER_ID}}",
  "querySpec": {
      "@type": "QuerySpecDto",
      "offset": 0,
      "limit": 100
  }
}

while this one (without the edc: works

{
  "@context": {
      "@vocab": "https://w3id.org/edc/v0.0.1/ns/"
  },
  "@type": "CatalogRequest",
  "protocol": "dataspace-protocol-http",
  "counterPartyAddress": "{{PROVIDER_DSP}}",
  "counterPartyId": "{{PROVIDER_ID}}",
  "querySpec": {
      "@type": "QuerySpecDto",
      "offset": 0,
      "limit": 100
  }
}

The correct response should be to tell that edc doesn't correspond to any element in the context. Not a plain http 400

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions