stellio-hub / stellio-context-broker

Stellio is an NGSI-LD compatible context broker
https://stellio.readthedocs.io
Apache License 2.0
27 stars 10 forks source link

503 Error on POST Requests: LdContextNotAvailable in Stellio Context Broker #1159

Closed dr-yst closed 4 months ago

dr-yst commented 4 months ago

Hello,

I'm new to Stellio. I am currently following the API walkthrough provided in the Stellio documentation and encountered an error while trying to post to the Beekeeper as the first step. Here's the error message I received:

{
  "type": "https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable",
  "title": "A remote JSON-LD @context referenced in a request cannot be retrieved by the NGSI-LD Broker and expansion or compaction cannot be performed",
  "status": 503,
  "detail": "Unable to load remote context (cause was: JsonLdError[code=There was a problem encountered loading a remote context [code=LOADING_REMOTE_CONTEXT_FAILED]., message=There was a problem encountered loading a remote context [code=LOADING_REMOTE_CONTEXT_FAILED].])",
  "instance": "/ngsi-ld/v1/entities"
}

I have ensured that all steps were accurately followed. Could you please provide guidance on how I can proceed with the walkthrough despite this issue? Is there a workaround or a specific configuration I should check?

Any guidance on how to resolve this would be greatly appreciated.

Thank you in advance for your assistance.

lucboj commented 4 months ago

Hello @dr-yst,

I think following PR is related to this: https://github.com/easy-global-market/ngsild-api-data-models/issues/205

Problem seems to be a broken link in the context. Once fixed your requests should run successfully.

bobeal commented 4 months ago

Hi @dr-yst,

As said by @lucboj, there was a broken link in the JSON-LD context used in the API Quickstart. The PR has been merged, it should now work again.

dr-yst commented 4 months ago

@lucboj @bobeal Thank you very much for the prompt response and resolution! I confirmed that everything is now working properly. I really appreciate your help.