i am intermittently receiving `supertokens_python....
# support-questions-legacy
d
i am intermittently receiving
supertokens_python.exceptions.GeneralError: No SuperTokens core available to query
and im not sure why
r
hey @d3adb0y
are you connecting to the dev instance?
d
uhhh
what you mean?
r
you are using our managed service right?
d
no no, self hosted
on azure
r
then check if your core is running.. visit the /hello API of the core url and see if that works
d
hm
do you think running the in memory database
is causing issues?
r
probably not. You should not use the in memory db for production use though.
check your core setup please.
since this is self hosted, there isn't much help we can give here anyway
d
oh i know just thought maybe i was doing something incredibly dumb
r
well.. maybe just some azure issue.. try restarting the core
d
let me check th elogs
logs*
i threw it up on Azure App Service to get me going intially
but i just finished getting my k8s deployments in place so i will probably migrate it over there
r
right
d
i just dont have enough time before tomorrow to do so
ugh
r
well..
d
it doesnt seem to be persistent anyways
r
you should not use the in mem db
d
yeah i will see if changing that stablizes it
thanks for your help as always man 🙂
you never sleep huh
lmao
also
switching to proper postgres db did not help the situation
seems like its still throwing those errors.
r
really not sure whats going wrong. See the error logs maybe
i don;t have any info + you are self hosting it
so you are kind of on your own here.. sorry
d
theres no logs in the supertokens container?
r
there should be
d
is that expected
r
it's not expected
are you using a file to log stuff to? WHat configs have you provided to the docker image?
d
oh must be an azure app service thing smh
r
yea
d
enabled logs on my instance
not seeing any exceptions thrown
oh wait am finally seeing something....
Driver org.postgresql.Driver claims to not accept jdbcUrl
r
when you visit the hello API, what do you see?
d
it shows the expected response immediately
r
right. So you see "hello" on the browser screen?
d
yup
r
ok so the core is working fine
now if your backend server can't connect to the core, check that the connection uri you have passed to the backend sdk init is correct - what value have you passed?
d
its correct. otherwise why would it work half the time?
it just spontaneously stops working
for no apparent reason
the call to my api /users/me/ endpoint just hangs until supertoken throws in my app.
Copy code
init(
        app_info=InputAppInfo(
            app_name=app_name,
            api_domain=api_domain,
            website_domain=website_domain,
            api_base_path=api_base_path,
            website_base_path=website_base_path
        ),
        supertokens_config=SupertokensConfig(
            connection_uri=connection_uri,
            api_key=api_key
        ),
        framework='fastapi',
        recipe_list=[
            userroles.init(),
            session.init(), # initializes session features
            passwordless.init(
                flow_type="USER_INPUT_CODE_AND_MAGIC_LINK",
                contact_config=ContactEmailOnlyConfig(),
                override=passwordless.InputOverrideConfig(
                    apis=api_overrides
                ),
            ),
            dashboard.init(api_key=api_key)
        ],
        mode='asgi' # use wsgi if you are running using gunicorn
    )
only non standard thing im doing is providing overrides for extra validations that the email exists in another system
oh
wtf
no tables are created in my database
im just gonna switch to hosted for now lmao
459 Views