Describn8n version: 2.9.4 (self-hosted, Docker)
Problem 1: Circular JSON error
When using an HTTP Request node to POST a Flux query to InfluxDB v2 (/api/v2/query), I get:
Converting circular structure to JSON --> starting at object with constructor 'Socket' | property '_httpMessage' -> object with constructor 'ClientRequest'
The node config: POST, application/vnd.flux content type, raw body with Flux query, Bearer token auth. The same query works fine via PowerShell/curl directly against InfluxDB.
Problem 2: Silent write failure
A separate HTTP Request node writing to InfluxDB via line protocol (/api/v2/write) shows no error in the execution log but nothing is written to the bucket. The input data is correct (verified in execution log). The write endpoint returns no error code.
What I’ve tried:
-
Replacing HTTP Request with a Code node using
$http,$helpers.httpRequest, andfetch— all undefined in 2.9.4 -
Setting response format to Text with
neverError: true -
Simplifying the Flux query
Is there a working pattern for querying and writing to InfluxDB from n8n 2.9.4?e the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: