Here’s the connection attempt with Verbose:
Syncing time.
Synchronized time: Mon Mar 21 14:33:49 2022
[ 3327][V][HTTPClient.cpp:247] beginInternal(): url: https://europe-west1-1.gcp.cloud2.influxdata.com/health
[ 3329][D][HTTPClient.cpp:298] beginInternal(): protocol: https, host: europe-west1-1.gcp.cloud2.influxdata.com port: 443 url: /health
[ 3341][D][HTTPClient.cpp:595] sendRequest(): request type: 'GET' redirCount: 0
[ 3348][V][ssl_client.cpp:61] start_ssl_client(): Free internal heap before TLS 261636
[ 3356][V][ssl_client.cpp:67] start_ssl_client(): Starting socket
[ 3428][V][ssl_client.cpp:143] start_ssl_client(): Seeding the random number generator
[ 3429][V][ssl_client.cpp:152] start_ssl_client(): Setting up the SSL/TLS structure...
[ 3433][V][ssl_client.cpp:175] start_ssl_client(): Loading CA cert
[ 3504][V][ssl_client.cpp:244] start_ssl_client(): Setting hostname for TLS session...
[ 3504][V][ssl_client.cpp:259] start_ssl_client(): Performing the SSL/TLS handshake...
[ 4510][V][ssl_client.cpp:280] start_ssl_client(): Verifying peer X.509 certificate...
[ 4511][V][ssl_client.cpp:288] start_ssl_client(): Certificate verified.
[ 4514][V][ssl_client.cpp:303] start_ssl_client(): Free internal heap after TLS 218320
[ 4521][D][HTTPClient.cpp:1141] connect(): connected to europe-west1-1.gcp.cloud2.influxdata.com:443
[ 4531][V][ssl_client.cpp:351] send_ssl_data(): Writing HTTP request with 311 bytes...
[ 4584][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'HTTP/1.1 200 OK'
[ 4585][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'Date: Mon, 21 Mar 2022 14:33:51 GMT'
[ 4589][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'Content-Type: text/html'
[ 4597][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'Content-Length: 1224'
[ 4604][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'Connection: close'
[ 4611][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'last-modified: Mon, 21 Mar 2022 08:32:04 GMT'
[ 4621][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'vary: Accept-Encoding'
[ 4628][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'etag: "62383804-4c8"'
[ 4636][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'accept-ranges: bytes'
[ 4643][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'Strict-Transport-Security: max-age=15724800; includeSubDomains'
[ 4654][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'X-Influxdb-Request-ID: 36265316492e872102de912d6d2cb790'
[ 4664][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: 'X-Influxdb-Build: Cloud'
[ 4672][V][HTTPClient.cpp:1234] handleHeaderResponse(): RX: ''
[ 4678][D][HTTPClient.cpp:1275] handleHeaderResponse(): code: 200
[ 4683][D][HTTPClient.cpp:1278] handleHeaderResponse(): size: 1224
[ 4689][D][HTTPClient.cpp:619] sendRequest(): sendRequest code=200
[ 4696][D][HTTPClient.cpp:383] disconnect(): still data in buffer (1224), clean up.
[ 4709][V][ssl_client.cpp:311] stop_ssl_socket(): Cleaning SSL connection.
[ 4710][D][HTTPClient.cpp:392] disconnect(): tcp stop
[ 4715][V][ssl_client.cpp:311] stop_ssl_socket(): Cleaning SSL connection.
Connected to InfluxDB: https://europe-west1-1.gcp.cloud2.influxdata.com
Writing: wifi_status,device=ESP32,SSID=********rssi=-56i
[ 4734][V][HTTPClient.cpp:247] beginInternal(): url: https://europe-west1-1.gcp.cloud2.influxdata.com/api/v2/write?org=********&bucket=TEST
[ 4746][D][HTTPClient.cpp:298] beginInternal(): protocol: https, host: europe-west1-1.gcp.cloud2.influxdata.com port: 443 url: /api/v2/write?org=********&bucket=TEST
[ 4762][D][HTTPClient.cpp:595] sendRequest(): request type: 'POST' redirCount: 0
[ 4769][V][ssl_client.cpp:61] start_ssl_client(): Free internal heap before TLS 261000
[ 4777][V][ssl_client.cpp:67] start_ssl_client(): Starting socket
[ 4814][V][ssl_client.cpp:143] start_ssl_client(): Seeding the random number generator
[ 4815][V][ssl_client.cpp:152] start_ssl_client(): Setting up the SSL/TLS structure...
[ 4818][V][ssl_client.cpp:175] start_ssl_client(): Loading CA cert
[ 4889][V][ssl_client.cpp:244] start_ssl_client(): Setting hostname for TLS session...
[ 4890][V][ssl_client.cpp:259] start_ssl_client(): Performing the SSL/TLS handshake...
[ 4897][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -1
[ 4901][V][ssl_client.cpp:311] stop_ssl_socket(): Cleaning SSL connection.
[ 4907][D][HTTPClient.cpp:1134] connect(): failed connect to europe-west1-1.gcp.cloud2.influxdata.com:443
[ 4916][W][HTTPClient.cpp:1437] returnError(): error(-1): connection refused
[ 4923][D][HTTPClient.cpp:405] disconnect(): tcp is closed
InfluxDB write failed: connection refused
Wait 10s
