GithubHelp home page GithubHelp logo

Comments (11)

tanktoo avatar tanktoo commented on August 29, 2024

I can confirm this. Happens with my version too.
{ "branch": "bug/136.ngsild_issue_0043_ignore", "kbase version": "0.2", "kalloc version": "0.2", "kjson version": "0.2" }
Response of first query as above. Second query results in crash. Without the version query before the second works as expected.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Ok!
Will look into this asap.
A little busy today but this got to the top three of my current ToDo list.
Thank you for reporting!

from context.orion-ld.

tanktoo avatar tanktoo commented on August 29, 2024

issue65.log
My log file with debug mode.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Unfortunately, the issue doesn't appear in my environment :(
Are both of you using docker?

from context.orion-ld.

tanktoo avatar tanktoo commented on August 29, 2024

I use docker yes.

from context.orion-ld.

mainakae avatar mainakae commented on August 29, 2024

Me too!, and not only for testing.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Just tried this in docker and ... no problem :(
This is what I did:

  1. Start orionld in an xterm
% orionld -fg  -t 0-255 -logLevel DEBUG
  1. In another xterm, run version and create an entity:
root@f0400de28d3c:/opt/orion# curl localhost:1026/ngsi-ld/ex/v1/version
{
  "branch": "hardening/137.toIx-in-func-test",
  "kbase version": "0.2",
  "kalloc version": "0.2",
  "kjson version": "0.2"
}
root@f0400de28d3c:/opt/orion# payload='{
>     "@context": [
>             "http://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
>             "http://schema.lab.fiware.org/ld/jsonldcontext.jsonld"
>         ],
>     "id": "urn:ngsi-ld:Room:Room1",
>     "type": "Room",
>     "temperature": {
>         "value": 23,
>         "type": "Property",
>         "unitCode": "C"
>     },
>     "pressure": {
>         "value": 720,
>         "type": "Property",
>         "unitCode": "mm Hg"
>     }
> }'
root@f0400de28d3c:/opt/orion# curl localhost:1026/ngsi-ld/v1/entities -H "Content-Type: application/ld+json" -d "$payload"

It worked just fine. I also did a GET on the entity after creation.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024
/opt/orion# curl "http://localhost:1026/ngsi-ld/v1/entities?type=Room&prettyPrint=yes"
[
  {
    "id": "urn:ngsi-ld:Room:Room1",
    "type": "Room",
    "https://uri.fiware.org/ns/datamodels/pressure": {
      "type": "Property",
      "value": 720.000000,
      "unitCode": "mm Hg"
    },
    "https://uri.fiware.org/ns/datamodels/temperature": {
      "type": "Property",
      "value": 23.000000,
      "unitCode": "C"
    },
    "@context": [
      "http://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
      "http://schema.lab.fiware.org/ld/jsonldcontext.jsonld"
    ]
  }
]

from context.orion-ld.

tanktoo avatar tanktoo commented on August 29, 2024

That't interesting. I just tried it again with curl and it seems to work fine. Then I just started postman, sent both queries and it crashed again. I don't see a difference between postman command and curl...

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Might have to with really recent changes http -> https for the contexts. We are working on it right now.
Bad timing :))

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Closing this issue as it seems the problem is only seen using postman, not using curl.
A new issue will be opened about the postman problem.

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.