-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to connect with Cockroach serverless uri #95
Comments
Running the cmd in utop confirms it's some failure in parsing of the
But parsing the uri itself yields the KV params correctly. The
|
Are you sure the option and argument shall be separated by a |
Forget my previous post, the problem is rather than the URI-encoding is lost when going though |
Can you check if 867049e (on master) fixes the issue? |
I'll check this out today. Thank you for the commit @paurkedal. Aside, can you explain how you locally iterate on the ocaml library? I couldn't figure out the workflow. My best attempt was to use opam to pin caqti and caqti-driver-postgresql to the local clone of this repo such that my app would supposedly use the locally pinned repo with my changes. That didn't work seem to work. Edits to the local files didn't get picked up, but I suspect it's some minor issue. On the other hand, the real bugger was that I couldn't get the caqti-driver-postgresql tests to yield any real test results with
|
To your first question, To the second question, the testsuite will only test against URIs listed in the file |
It works! I connected to my serverless crdb cluster and successfully queried some data. |
Issue
Caqti cannot connect to cockroachdb serverless's uri. I suspect it might be that a particular query param is filtered out during uri parsing.
Example
Attempting to connect to cockroach's url at
postgresql://user:password@free-tier14.aws-us-east-1.cockroachlabs.cloud:26257/defaultdb?sslmode=verify-full&options=--cluster=some-cluster-name-4321
yieldsNotice that
<postgresql://dennis:_@free-tier14.aws-us-east-1.cockroachlabs.cloud:26257/defaultdb?sslmode=v"
misses the expected&options=--cluster=some-cluster-name-4321
.Anyone can create a new cluster for free at https://cockroachlabs.cloud/
If I resolve the issue, I'll create a PR
The text was updated successfully, but these errors were encountered: