GithubHelp home page GithubHelp logo

Comments (2)

kzangeli avatar kzangeli commented on August 29, 2024

Contexts as arrays is implemented and working ...
I implemented a functest creating the entity in the example above and ran into problems with the three last contexts:

kz@malika:context.Orion-LD> wget http://example.org/cim/commonTerms.jsonld
--2018-11-17 20:40:08--  http://example.org/cim/commonTerms.jsonld
Resolving example.org (example.org)... 93.184.216.34
Connecting to example.org (example.org)|93.184.216.34|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-11-17 20:40:09 ERROR 404: Not Found.

Replacing the last three contexts with ONE context: https://fiware.github.io/NGSI-LD_Tests/ldContext/testFullContext.jsonld, i.e. an Array with two contexts and the creation is successful.

wget got a 404 Bad Request.
orionld reports this result:

orionldRequestSend.cpp[46]:writeCallback : Got a chunk of 1270 bytes: <!doctype html>
   ...

[ I imagine I don't even look at the HTTP Status Code. The error could definitely be better ].

Please perform a new test with working context URLs.
This issue should be renamed to something like "Bad error reporting for contexts with an invalid URL ]
And instead of bug this is a tech debt.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

I did look at the error code (from curl_easy_perform).
However, the function returns 0 (OK) for 404 Bad Request ... :(
Thanks to SOF I found away to tell curl_easy_perform to complain on non-200 HTTP Status code, so, now the error response is better.

See commit 398d9bc

from context.orion-ld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.