I spent way too much time debugging problems on my ESP32 project yesterday.
The root cause - ESP32 for Arduino 4.0.0 broke both WiFi and BLE functionality 😡
On the WiFi side, the connection succeeded, but I was getting a -1 error from HTTPClient.GET(). This same code (and server) worked fine up until then.
On the BLE side, the connection succeeded, but writing data to the characteristic didn't appear to be transmitted.
ESP32 for Arduino V3.12 fixed the WiFi. Now to test BLE...