Hi All- I'm checking out SuperTokens for a React project and have the ThirdPartyEmailRecipe React/Express recipe running on my mac dev machine using the hosted
https://try.supertokens.com server but have been banging my head against a wall trying to get it to work with self hosted. Getting the "Error: No SuperTokens core available to query" no matter what I try.
I have downloaded and installed supertokens directly on my macOS development machine, not using docker. Have the hello working in the browser.
I updated the backend config.ts to use:
js
supertokens: {
// this is the location of the SuperTokens core.
connectionURI: "http://localhost:3567",
}
I've run supertokens both with the in memory storage
sh
$ supertokens start
Loading supertokens config.
Completed config.yaml loading.
Loading storage layer.
Using in memory storage.
Loading supertokens version.yaml file.
Started SuperTokens on localhost:3567 with PID: 8364
And with MySQL by creating a database & user and setting up the mysql_connection_uri in config.yaml
sh
$ supertokens start
Loading supertokens config.
Completed config.yaml loading.
Loading storage layer.
Loading MySQL config.
Loading supertokens version.yaml file.
Setting up MySQL connection pool.
Started SuperTokens on localhost:3567 with PID: 10797
The database tables were created and tested with results from
SELECT * FROM key_value;
Everything else is default setup but always get error for no supertokens core available. Switching back to try.supertokens.com works.
I have started over twice and been through the instructions multiple times. Read through previous posts by searching the error here in Discord and most solutions seemed to be related to docker network issues which I am not using. The pieces all seem to be running but not talking to the local supertokens server. MacOS firewall inactive. Cors issue?
Any advice on what to try next greatly appreciated!