fiware orion - service '/v1/updateContext' not found error -


i have launched instance using "orion-psb-image-r4.1" on spain2. can remote login , start context broker this: “/etc/init.d/contextbroker start”.

but when send command

    (curl localhost:1026/v1/updatecontext -s -s --header 'content-type: application/xml' -d @- | xmllint --format - ) <<eof <?xml version="1.0" encoding="utf-8"?> <updatecontextrequest>   <contextelementlist>     <contextelement>       <entityid type="room" ispattern="false">         <id>room1</id>       </entityid>       <contextattributelist>         <contextattribute>           <name>temperature</name>           <type>float</type>           <contextvalue>23</contextvalue>         </contextattribute>         <contextattribute>           <name>pressure</name>           <type>integer</type>           <contextvalue>720</contextvalue>         </contextattribute>       </contextattributelist>     </contextelement>   </contextelementlist>   <updateaction>append</updateaction> </updatecontextrequest> eof 

there response:

<?xml version="1.0"?> <orionerror>   <code>400</code>   <reasonphrase>bad request</reasonphrase>   <details>service '/v1/updatecontext' not found</details> </orionerror> 

any appreciated.

check version of broker:

contextbroker --version 

to not recognize '/v1' must old.
not encourage use old version of broker if need use exact version, try '/ngsi10/updatecontext' instead of '/v1/updatecontext'.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -