[Fiware-tech-help] [Publish/Subscribe Context Broker - Orion Context Broker] Questtion about orion context broker

quyhn at applicateit.net quyhn at applicateit.net
Fri Apr 1 06:59:36 CEST 2016


Nguyen Hoang Quy sent a message using the contact form at
http://catalogue.fiware.org/.

Dear,
Please help me to correct an error as below:
Service return error: Unauthorized when i am trying to create new entity on
Orion Context Broker
Link on stack overflow:
http://stackoverflow.com/questions/36348231/fiware-orion-context-broker-return-unauthorized-error-when-create-new-entity
- Service Endpoint (URL):http://orion.lab.fiware.org:1026
- Request:
       POST: http://orion.lab.fiware.org:1026/v2/entities
       Header:
           Content-Type:application/json
           X-Auth-Token:"Bearer + [token is got form
https://account.lab.fiware.org]
      Body:
         "{  \"type\": \"aaaaaa\",  \"id\": \"Bcn-Welt\",  \"temperature\":
21.7,  \"humidity\": 60,  \"location\": {    \"value\": \"41.3763726,
2.1864475\",    \"type\":    \"geo:point\",    \"crs\": \"WGS84\"  }}"

Note: - [token] i get directly from https://account.lab.fiware.org
           - Link reference document to create entity:
http://telefonicaid.github.io/fiware-orion/api/v2/cookbook/




More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy