AWS Lambda fetching fails? #1943
Unanswered
francestu96
asked this question in
Q&A
Replies: 1 comment 2 replies
-
After a week of googling, tests and blasphemies, still having this problem... I cannot solve this problem |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this simple bot deployed on AWS Lambda.
It has a welcome scene and a wallet scene.
The problem is that the function execution "skip" this line in the wallet scene:
const balance = await solanaConn.getBalance(ctx.session.wallet.publicKey);
I don't know what exactly happens but the AWS logs of a wallet scene entering is the following:
It looks like the function execution ends before awaiting the rpc call of getting the balance.
Furthermore, when I use the same line of code inside the welcome scene, it perfectly works!
This is the bot code, thank you in advance:
Beta Was this translation helpful? Give feedback.
All reactions