WisBlock Mapper uplink error responsecode:400

what causes this error

“category”: “uplink”,
“description”: “Error ResponseCode: 400”,
“device_id”: “78ddc3f6-c926-4a92-9940-4411b817ebd3”,
“device_name”: “WisBlock Mapper”,
“id”: “f526a0a2-d17b-4200-b58b-29ca0e83cd97”,
“inserted_at”: “2022-01-03T16:37:56”,
“organization_id”: “5802fd44-7eae-4193-af95-b9f828aab82f”,
“reported_at”: “1641227876898”,
“reported_at_naive”: “2022-01-03T16:37:56”,
“router_uuid”: “cc8f5081-e67d-428a-8a64-068a533aed81”,
“sub_category”: “uplink_integration_res”,
“updated_at”: “2022-01-03T16:37:56”
}

Hi @Kujo10!

Using the debug view, you can “unhide” more information to discover why your integration fails. The image below helps you to find where you must click.

Screen Shot 2022-01-03 at 8.56.46 PM

Let me show you an example. The following is displayed when the decoder doesn’t have an accuracy field to send to the integration.

{
  "category": "uplink",
  "data": {
    "integration": {
      "id": "33d6a564-ddc4-41aa-98d9-20da2ad2e145",
      "name": "Mappers v2",
      "status": "error"
    },
    "res": {
      "body": "{\"error\":\"Missing Field: accuracy\"}",
      "code": 400,
      "headers": {
        "CF-Cache-Status": "DYNAMIC",
        "CF-RAY": "6c80e7ccbecc7c36-LAX",
        "Connection": "keep-alive",
        "Content-Length": "35",
        "Content-Type": "application/json; charset=utf-8",
        "Date": "Tue, 04 Jan 2022 02:06:04 GMT",
        "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
        "NEL": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}",
        "Report-To": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=KbKFtAAUZgSRUet2CIXOxKg1T3WHNChJ%2FkZ8bvgPgytH3nKrJ7Wt3pWcGoIBu3R8vA4Y1ktNiwo336xV7xEMV5yOBNkYgHc1HbQAaE1v80zMYFA1pWYbPLRfXYzKNuQysPbu%2FAw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
        "Server": "cloudflare",
        "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400",
        "cache-control": "max-age=0, private, must-revalidate",
        "strict-transport-security": "max-age=31536000",
        "via": "1.1 vegur",
        "x-request-id": "71f3161b-a133-442f-9caa-e1e9f60b9d4c"
      }
    }
  },
  "description": "Error ResponseCode: 400",
  "device_id": "bf6ecb85-7985-4ecc-9d02-eaaa1b0e6fbd",
  "device_name": "WisBlock Mapper @ Johan #1",
  "frame_down": null,
  "frame_up": null,
  "id": "9e73fad8-9372-4ae0-be3b-6caaa0a1163a",
  "inserted_at": "2022-01-04T02:06:04",
  "organization_id": "5e06d30a-268c-46fb-89c6-61b498e4600f",
  "reported_at": "1641261964664",
  "reported_at_epoch": 1641261964664,
  "reported_at_naive": "2022-01-04T02:06:04",
  "router_uuid": "8913311d-cb96-497d-8759-0c87abaa0380",
  "serial": null,
  "sub_category": "uplink_integration_res",
  "updated_at": "2022-01-04T02:06:04"
}

In the previous example the error description was {\"error\":\"Missing Field: accuracy\"}. So, take a look at yours and let us know if you figured out how to solve it or if you require further help.

Thank you for the reply. My issue is now fixed. What I found was there was an extra } at the end of the commented out code. Once it was removed it worked.

1 Like