Tip: From Visual Studio Code, you can use the command DeviceScript: Report Issue... to prefill the issue template.
Describe the bug
From a ESP32 device, I want to post some data to a Cloud Firestore, thus I'm using fetch(...) function to achieve that.
The store is currently unprotected for the moment, so any data can be posted without much overhead.
Thing is, I get a socket tls://firestore.googleapis.com:443 error tls://firestore.googleapis.com:443: self-signed certificate.
This is my code:
Describe the bug From a ESP32 device, I want to post some data to a Cloud Firestore, thus I'm using
fetch(...)
function to achieve that. The store is currently unprotected for the moment, so any data can be posted without much overhead. Thing is, I get asocket tls://firestore.googleapis.com:443 error tls://firestore.googleapis.com:443: self-signed certificate
. This is my code:NOTE: I tried exactly the same with MicroPython, and works like a charm. Here is my python code:
So, how's this different from what I'm doing with MicroPython?
To Reproduce Steps to reproduce the behavior:
fetch(...)
request to Cloud FirestoreExpected behavior Be able to successfully make a request to Cloud Firestore.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Console Output: