Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5214

FIWARE.Request.Lab.400 bad request on executing SendObservation.py.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:
      None

      Description

      Hello all,

      I am new to FIWARE and I am trying to REGISTER my sensor and update its
      attributes as mentioned in the link
      https://www.fiware.org/tag/developers/page/2/
      I have registered my sensor using following command:
      *RegisterDevice.py SENSOR_TEMP sensor4 thermometer4
      *I got 201 CREATED as a response.
      After this, I tried to update temperature as below:
      *python SendObservation.py a5fa:694:sensor4 't^|6' *
      note: Since I am using DOS, I used ^ as escape character.
      *
      *As a result, I am getting 400 bad request as shown below:

      • Asking to http://130.206.80.47:8002/d?<mytoken>&i=a5fa:694:
        sensor4
      • Headers: {'content-type': 'application/text', 'X-Auth-Token': 'I*********** ***********************************************************3'}
      • Sending PAYLOAD:
        't|6'

      ...

      • Status Code: 400
      • Response:

      Kindly help me to find out what am I missing here.

      Best Rregards,
      Shreekantha

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: Shreekantha Devasya <shreekantha.devasya@fit.fraunhofer.de>]

      1. cloud portal.png
        22 kB
      2. cloud tab.png
        37 kB
      3. ihcjjgfc.png
        35 kB

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        12d 7h 35m 1 Alvaro Alonso 18/Nov/15 5:42 PM
        In Progress In Progress Answered Answered
        4d 21h 11m 1 Pietropaolo Alfonso 23/Nov/15 2:53 PM
        Answered Answered Closed Closed
        2s 1 Pietropaolo Alfonso 23/Nov/15 2:53 PM

          People

          • Assignee:
            alfopietro Pietropaolo Alfonso
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: