I'm afraid that's just an issue with HTTPS on the Pico - HTTPS uses a huge amount of RAM, and if your code is using too much then it can't allocate enough for a connection.
If you're manually specifying keys and certificates, that can really hurt - so if you can just not specify them and leave them automatic it'd save you a bunch of RAM.
Otherwise you could look at turning on minification and 'save on send' in the IDE options. Save on send writes data to Espruino in such a way that functions can be executed directly from Flash without having to use RAM.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm afraid that's just an issue with HTTPS on the Pico - HTTPS uses a huge amount of RAM, and if your code is using too much then it can't allocate enough for a connection.
If you're manually specifying keys and certificates, that can really hurt - so if you can just not specify them and leave them automatic it'd save you a bunch of RAM.
Otherwise you could look at turning on minification and 'save on send' in the IDE options. Save on send writes data to Espruino in such a way that functions can be executed directly from Flash without having to use RAM.