Hey. I am attempting to run a self-managed instance of SuperTokens. It is connected to the CloudSQL ...
a

advait

over 1 year ago
Hey. I am attempting to run a self-managed instance of SuperTokens. It is connected to the CloudSQL instance. To improve on my testing time etc, I decided to compose my backend container & the supertokens core together via docker-compose. My data is stored on a Google CloudSQL instance. Additionally, my express backend is run on port 3000, and the
supertokens-postgres
is run on port 3567. All of this is run on the same network. When I try to send a POST request to
/auth/signin
, I receive a
status 500
. Additionally, in my logs I receive the following error
TypeError: fetch failed
2023-12-22 06:26:56     at Object.fetch (node:internal/deps/undici/undici:11730:11)
2023-12-22 06:26:56     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-12-22 06:26:56     at async sendRequestHelper._a (/usr/src/node_modules/supertokens-node/lib/build/querier.js:51:36)
2023-12-22 06:26:56     at async Querier.sendRequestHelper (/usr/src/node_modules/supertokens-node/lib/build/querier.js:326:32)
2023-12-22 06:26:56     at async Querier.getAPIVersion (/usr/src/node_modules/supertokens-node/lib/build/querier.js:41:38)
2023-12-22 06:26:56     at async sendRequestHelper._a (/usr/src/node_modules/supertokens-node/lib/build/querier.js:85:38)
2023-12-22 06:26:56     at async Querier.sendRequestHelper (/usr/src/node_modules/supertokens-node/lib/build/querier.js:326:32)
2023-12-22 06:26:56     at async Querier.sendPostRequest (/usr/src/node_modules/supertokens-node/lib/build/querier.js:81:40)
2023-12-22 06:26:56     at async Object.signIn (/usr/src/node_modules/supertokens-node/lib/build/recipe/emailpassword/recipeImplementation.js:58:30)
2023-12-22 06:26:56     at async Object.signInPOST (/usr/src/node_modules/supertokens-node/lib/build/recipe/emailpassword/api/implementation.js:450:28)
The
localhost:3567/hello
is reachable and responsive. The other endpoints on my backend are also responsive. Could someone help me with this error please?