Comments (2)
Orion expects the Context Entity and its attributes to exist, by having been previously added by an APPEND
or registerContext
request, when using UPDATE
.
We just recently changed our examples and code to use APPEND
instead of UPDATE
as we also hit this error.
So the latest version (0.1.2-SNAPSHOT from master
branch) examples and code should work fine with Orion.
Strangely, orion returns http status 200, even though the content indicates, that the request failed.
This is expected from Orion as this behavior is specified as part of the NGSI v1 protocol specification. All NGSI requests will always return 200 Ok
HTTP response code, applications are expected to check for errorCode
and statusCode
tags in the response.
What is unexpected is the orionError
tag which are not part of the NGSI v1 specification.
Can you confirm you still get the error once you use UPDATE
with an existing Context Entity, I tried to reproduce with Postman on orion.lab.fiware.org:1026
but got no error:
POST /ngsi10/updateContext HTTP/1.1
Host: orion.lab.fiware.org:1026
Accept: application/xml
X-Auth-Token: **********************************
Content-Type: application/xml
Cache-Control: no-cache
<updateContextRequest><updateAction>UPDATE</updateAction><contextElementList><contextElement><entityId type="Floor" isPattern="false"><id>Floor3</id></entityId><contextAttributeList><contextAttribute><name>temperature</name><type>double</type><contextValue>23.46153846153846</contextValue><metadata/></contextAttribute></contextAttributeList></contextElement></contextElementList></updateContextRequest>
response :
<updateContextResponse>
<contextResponseList>
<contextElementResponse>
<contextElement>
<entityId type="Floor" isPattern="false">
<id>Floor3</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>temperature</name>
<type>double</type>
<contextValue></contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>
<statusCode>
<code>200</code>
<reasonPhrase>OK</reasonPhrase>
</statusCode>
</contextElementResponse>
</contextResponseList>
</updateContextResponse>
If the Context Entity Floor3
does not exist when using UPDATE
this is what is answerd by Orion:
<updateContextResponse>
<contextResponseList>
<contextElementResponse>
<contextElement>
<entityId type="Floor" isPattern="false">
<id>Floor3</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>temperature</name>
<type>double</type>
<contextValue></contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>
<statusCode>
<code>404</code>
<reasonPhrase>No context element found</reasonPhrase>
<details>Floor3</details>
</statusCode>
</contextElementResponse>
</contextResponseList>
</updateContextResponse>
from fiware-cepheus.
Hi Mark. Thanks for the hint with the UPDATE/APPEND. With the latest cepheus we see it working now. Also thanks for the hint reg. http status 200/400. Regarding the orion Error tag, we just opened an issue reg. that: telefonicaid/fiware-orion#1500
from fiware-cepheus.
Related Issues (20)
- Add guaranteed delivery to Cepheus Broker HOT 5
- Adding persistance to Cepheus HOT 1
- Compatibility with Orion 1.X.X
- Error with cepheus Broker 0.1.7 HOT 1
- run cep condition every X minutes? HOT 7
- Use Docker parameters for Cepheus configuration HOT 2
- Exception logging HOT 1
- Example mocks crash on updateContextResponse HOT 1
- Improve documentation for exampel 3_CepAndBroker HOT 1
- Cepheus CEP in a multi-tenancy way HOT 8
- Cepheus multiple statements HOT 1
- change remote.url in docker container HOT 8
- Cepheus-CEP multitenancy issue on filtering requests HOT 6
- Stack Overflow Error processing rules with nested geopoint type attributes HOT 2
- Cepheus does not send subscribeContext request on changing ServiceName and ServicePath HOT 2
- Incorrect processing for notification about changes in multiple context entities. HOT 4
- Cepheus-CEP multitenancy issue for multi-tenant provider HOT 5
- Cepheus-CEP multitenancy issue for multiple subscription HOT 1
- Cepheus CEP DELETE request doesn't unsubscribe Provider
- Cepheus-CEP does not hold multiple subscription in multi-tenant mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiware-cepheus.