jypr
04/28/2023, 2:14 AMjs
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!rp_st
04/28/2023, 5:20 AMjypr
04/28/2023, 5:43 PMrp_st
04/28/2023, 6:58 PMrp_st
04/28/2023, 6:58 PMjypr
04/29/2023, 1:03 AMjs
export const SuperTokensConfig: TypeInput = {
supertokens: {
// this is the location of the SuperTokens core.
connectionURI: "http://localhost:3567", // works-> https://try.supertokens.com nope -> http://localhost:3567 nope -> http://192.168.1.40:3567
},
appInfo: {
appName: "SuperTokens Demo App",
apiDomain: getApiDomain(),
websiteDomain: getWebsiteDomain(),
},
// recipeList contains all the modules that you want to
// use from SuperTokens. See the full list here: https://supertokens.com/docs/guides
recipeList: [
ThirdPartyEmailPassword.init({
providers: [
// We have provided you with development keys which you can use for testing.
// IMPORTANT: Please replace them with your own OAuth keys for production use.
ThirdPartyEmailPassword.Google({
clientId:
"1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com",
clientSecret: "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",
}),
ThirdPartyEmailPassword.Github({
clientSecret: "e97051221f4b6426e8fe8d51486396703012f5bd",
clientId: "467101b197249757c71f",
}),
ThirdPartyEmailPassword.Apple({
clientId: "4398792-io.supertokens.example.service",
clientSecret: {
keyId: "7M48Y4RYDL",
privateKey:
"-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgu8gXs+XYkqXD6Ala9Sf/iJXzhbwcoG5dMh1OonpdJUmgCgYIKoZIzj0DAQehRANCAASfrvlFbFCYqn3I2zeknYXLwtH30JuOKestDbSfZYxZNMqhF/OzdZFTV0zc5u5s3eN+oCWbnvl0hM+9IW0UlkdA\n-----END PRIVATE KEY-----",
teamId: "YWQCXGJRJL",
},
}),
],
}),
Session.init(),
Dashboard.init(),
],
}
jypr
04/29/2023, 1:08 AMsh
$ lsof -i TCP:3567
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 49863 jaypricer 54u IPv6 0x3754407c69dee3fb 0t0 TCP localhost:emware-oft (LISTEN)
rp_st
04/29/2023, 5:35 AMjypr
04/29/2023, 12:58 PMsh
$ nc -vn 192.168.1.40 3567
nc: connectx to 192.168.1.40 port 3567 (tcp) failed: Connection refused
so it seems the supertokens java is listening but is being blocked by something, just not sure how to tell what as I have checked everything I can think of.
@rp_st Thanks so much for looking at it. At this point I am going to give up on this direction, maybe install and try the docker setup or try it out on a different machine.rp_st
04/29/2023, 1:26 PMrp_st
04/29/2023, 1:26 PMrp_st
04/29/2023, 1:26 PM