Dear Simon,
thank you for writing in, and sorry to hear about those hiccups you are observing when connecting to CrateDB Cloud.
I’ve tried to reproduce the problem by just creating a new CRFREE cluster on https://console.cratedb.cloud/, and exercised connecting to it on behalf of crash
, and your example application at GitHub - simonprickett/cratedb-demo: Spatial data demo application using CrateDB and the Express framework..
In both cases, connecting to the database instance worked well.
crash shell
Connecting with crash works both non-interactively, or, when omitting the password, interactively by prompting for it.
crash --host 'https://admin:REDACTED@beige-grievous.aks1.westeurope.azure.cratedb.net:4200' < test.sql
Express application
When configuring the same connection URL within your .env
file, …
CRATE_URL=https://admin:REDACTED@beige-grievous.aks1.westeurope.azure.cratedb.net:4200
… and loading data into the database, that command, using HTTPie, also works well for me.
http localhost:3000/search 'point[lng]=2' 'point[lat]=60'
{
"data": [
{
"boundaries": {
"coordinates": [
... COMPRESSED ...
],
"type": "Polygon"
},
"forecast": {
"sea": "Slight or moderate.",
"visibility": "Good, occasionally poor.",
"weather": "Rain or thundery showers.",
"wind": "Variable 2 to 4, becoming cyclonic 4 to 6."
},
"name": "Viking"
}
]
}
Q&A
Can you tell us more about your operating system environment, or other setup conditions, and maybe about the software version of your crash
command? My installation, on macOS/Python3.11, is:
$ crash --version
0.30.2
However, as you are apparently observing the same connectivity problem also on your Node.js/Express application, the root cause is probably something which causes havoc to both variants, and is most likely not related to any software version problem.
Apologies that my response probably does not help you to debug the problem at all. Let’s also hear back from our engineers whether they can observe any anomalies on our cloud infrastructure, which could lead to connectivity problems in one way or another.
With kind regards,
Andreas.