HTTP Node Version 0.142.0 error reported

Hi,

I am getting the below error:

[ { “message”: “Invalid Syntax : offending token ‘’ at line 1 column 1”, “locations”: [ { “line”: 1, “column”: 1 } ], “extensions”: { “classification”: “InvalidSyntax” } } ]

When I use this node:

{
  "nodes": [
    {
      "parameters": {
        "authentication": "basicAuth",
        "requestMethod": "POST",
        "url": "https://api.matterport.com/api/models/graph?=query",
        "options": {},
        "queryParametersUi": {
          "parameter": [
            {
              "name": "query",
              "value": "=mutation  {\n  updateModelState(\n    id: \"{{$node[\"DataFilter\"].json[\"field_859_raw\"]}}\",\n    state: active) \n  {\n    id\n  }\n}"
            }
          ]
        }
      },
      "name": "HTTP Make Active",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        780,
        150
      ],
      "credentials": {
        "httpBasicAuth": "Matterport"
      }
    }
  ],
  "connections": {}
}

The node worked fine in 0.130.0

Please can someone help me?

Kind regards

Paul

All I can do is to compare the requests that get made with a page like https://webhook.site/ and there it looks like the same data does get send. So sadly no idea what is going on.

So what you can try (in that order):

  1. Upgrade to the latest n8n version
  2. Set the environment variable N8N_USE_DEPRECATED_REQUEST_LIB=true
  3. Debug yourself or create something reproducible that you can share

Thanks @jan. That helped me to the answer. As the payload has not changed I guessed the endpoint may have changed and it has. For anyone else the new matterport end point to use is https://api.matterport.com/api/models/graph?

Glad to hear that you found the problem! Have fun!