https://serverless-stack.com/ logo
#sst
Title
# sst
k

Karo

02/25/2022, 5:34 PM
👋 hi there, just checking if what i'm seeing is a bug. I'm using the console for testing an API endpoint, but the lambda was getting empty events. After hitting the API endpoint directly through the browser, then i started getting the proper events when testing in the console. Currently using sst version 0.65.6.
before
after hitting the browser
t

thdxr

02/25/2022, 5:35 PM
How were you triggering it before?
k

Karo

02/25/2022, 5:36 PM
just thorugh the console -> Functions
t

thdxr

02/25/2022, 5:36 PM
if you're hitting the invoke button there's no way for the console to figure out what the payload should be
you have to specify the payload
Hitting it through the api endpoint is correct, we'll be releasing an API explorer like Postman sometimes in the following weeks
k

Karo

02/25/2022, 5:38 PM
ohh got it, i guess i got a bit confused. I hadn't seen you can specify the payload there
thank you @thdxr
2 Views