Hello.
I made successfully an influxdb engine. I can access from browser and from powershell with Test-NetConnection.
Then i am trying to send entities data from homeassistant using the rest command
rest_command:
send_to_influxdb:
url: “https://my-engine.fly.dev:8086/write?db=homeassistant”
method: POST
headers:
Content-Type: “application/x-www-form-urlencoded”
Authorization: “Token XXXXXXXXX”
payload: |
current_consumption,device=XXXXXXX’) }}
but i have an error .
I used the postman to send the post → https://my-engine.fly.dev:8086/query?Authorization=Token my token
but i get this error
POST https://my-engine.fly.dev:8086/query?Authorization=Token%XXXXXXXX: {
“Error”: “Client network socket disconnected before secure TLS connection was established”,
“Request Headers”: {
“user-agent”: “PostmanRuntime/7.43.0”,
“accept”: “/”,
“postman-token”: “XXXXXX”,
“host”: “my-engine.fly.dev:8086”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”
},
“Request Body”: {
“q”: “SHOW DATABASES”
}
}
The token is the correct one. What is the problem and how can i fix this?
Thanks!!!