Execute shows error on Next.js #558
-
Hey there, I run this code:
And this is the error I received:
I'm not sure why I recieve this error and what went wrong, can it be related to the "session" being null? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @TidharHayute, That does seem a bit odd. How are you passing in the host value exactly? Are you passing it in simply as At first glance if the session isn't establishing itself correctly that would seem to indicate an issue with one of the Assuming that the
Or you can try running the From what I recall, I believe the session is established lazily when your first query gets executed, rather than immediately on the |
Beta Was this translation helpful? Give feedback.
Hello @TidharHayute,
That does seem a bit odd.
How are you passing in the host value exactly? Are you passing it in simply as
aws.connect.psdb.cloud
or as a complete URL like what's shown above (e.g.https://aws.connect.psdb.cloud/
)?At first glance if the session isn't establishing itself correctly that would seem to indicate an issue with one of the
config
values.Assuming that the
host
,username
, andpassword
values are all correct and accurate then the next type of test I would be curious about is if you can execute the example query below successfully that we include in our sample connection information:Or you …