You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, as per the JSON-LD specification, a remote JSON-LD context must be served with an appropriate content type (see point 6 in https://www.w3.org/TR/json-ld11-api/#loaddocumentcallback: Otherwise, the retrieved document's [Content-Type](https://tools.ietf.org/html/rfc2045#section-5) is neither application/json, application/ld+json, nor any other media type using a +json suffix as defined in [[RFC6839](https://www.w3.org/TR/json-ld11-api/#bib-rfc6839)]. Reject the promise passing a [loading document failed](https://www.w3.org/TR/json-ld11-api/#dom-jsonlderrorcode-loading-document-failed) error.).
As the JSON-LD processor used by Stellio is quite strict with the specification, https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite.jsonld is rejected because it is served as text/plain. Other context brokers are more lenient on this...
PS: avoid using https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld as it is a very old context (before version 1.3 of the specification) and many NGSI-LD features will not work with it. For the current state of test suite, you can for instance use https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld.
Hello,
Using any of the last Stellio version, when creating an entity with as @context :
[
"https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
]
Stellio returns a 503 error and I don't know why.
Please may you help me?
The text was updated successfully, but these errors were encountered: