[ https://jira.fiware.org/browse/HELP-14575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Veronika Vlnkova reassigned HELP-14575: --------------------------------------- Assignee: Joaquín Salvachúa > [fiware-stackoverflow] FIWARE [NGSI] Orion-Cygnus-Hadoop HTTPBadRequestException: 'fiware-servicepath' through an Orion subscription > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HELP-14575 > URL: https://jira.fiware.org/browse/HELP-14575 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Joaquín Salvachúa > Labels: fiware, fiware-cosmos, fiware-cygnus, fiware-orion > > Created question in FIWARE Q/A platform on 30-08-2018 at 23:08 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52105736/fiware-ngsi-orion-cygnus-hadoop-httpbadrequestexception-fiware-servicepath > +Question:+ > FIWARE [NGSI] Orion-Cygnus-Hadoop HTTPBadRequestException: 'fiware-servicepath' through an Orion subscription > +Description:+ > I want to persist some historical data from my server. So the documentation says that you must first send a subscription to Orion and then Orion will send the notification to Cygnus. > I made the subscription like this: > Entity payload = Entity.json("{\r\n" + > " \"entities\": [{\r\n" + > " \"type\": \"Usuario\",\r\n" + > " \"isPattern\": \"true\",\r\n" + > " \"id\": \"Usuario*\"\r\n" + > " }],\r\n" + > " \"attributes\": [],\r\n" + > " \"reference\": \"http://192.168.10.3:5050/notify\",\r\n" + > " \"duration\": \"P4Y\",\r\n" + > " \"notifyConditions\": [{\r\n" + > " \"type\": \"ONCHANGE\",\r\n" + > " \"condValues\": [\r\n" + > " \"speed\"\r\n" + > " ]\r\n" + > " }],\r\n" + > " \"throttling\": \"PT0.001S\"\r\n" + > "}"); > Response response = client.target("http://192.168.10.3:1026/v1/subscribeContext") > .request(MediaType.APPLICATION_JSON_TYPE) > .post(payload); > And the creation of entities: > Entity payload = Entity.json("{ \"type\": \"Usuario\", \"id\": \"Usuario22\", \"temperature\": { \"value\": \"80.0\" }, \"location\": { \"value\": \""+latitud+", "+altitud+"\", \"type\": \"geo:point\", \"metadata\": { \"crs\": { \"value\": \"WGS84\" } } }}"); > Response response = client.target("http://192.168.10.3:1026/v2/entities") > .request(MediaType.APPLICATION_JSON_TYPE) > .post(payload); > Then, Cygnus log tell me: > HTTPBadRequestException: 'fiware-servicepath' header value does not match the number of notified context responses [...] > Do any of you know why this is happening? The creation of the headers should be done by Orion or, failing that, by using the configuration of the Cygnus... > Thank you in advance. -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy