https://supertokens.com/ logo
Title
a

ALGOR1THM

03/04/2023, 12:08 AM
Hey! Does anyone run SuperTokens with docker and CockroachDB?
r

rp

03/04/2023, 5:04 AM
Hey @ALGOR1THM. We had tested it long ago, but not recently.
If you want to test it, see the part of how to contribute to the supertokens core, setup the dev env, and run all the tests against cocokroach db. If it passes, then you are good to go.
a

ALGOR1THM

03/04/2023, 10:51 AM
Hey @rp thanks for your answer! I just ran the tests but using a CockroachDB connection string gives this error.
r

rp

03/04/2023, 11:38 AM
Have you added the api_keys in the config file? You don’t need to add that value during testing. Just set the cockroach db connection uri in the postgresql_connection_uri config in the supertokens-postgresql-plugin project
Im the devConfig.yaml file
a

ALGOR1THM

03/04/2023, 3:27 PM
I haven't added the api_keys and have added the connection url to devConfig. Guess CockroachDB doesn't work...
r

rp

03/04/2023, 3:38 PM
Can you send me the config.yaml file in the supertokens-root/temp repo?
The error stack indicates that something else is wrong
a

ALGOR1THM

03/04/2023, 5:01 PM
@rp I manage to fix the connection string... I used quotation marks... No I get two failed tests: io.supertokens.test.APIKeysTest > testSettingMultipleAPIKeysWithSpacing STANDARD_OUT
io.supertokens.test.APIKeysTest > testSettingMultipleAPIKeysWithSpacing FAILED
io.supertokens.test.AuthRecipeAPITest2_10 > deleteUser FAILED
r

rp

03/04/2023, 5:06 PM
Hmm. The api keys test has nothing to do with the database being used. So that’s strange that those are failing
What’s the deleteUser test error?
Error stack *