Heya, I'm trying live lambda debugging, but all my...
# help
m
Heya, I'm trying live lambda debugging, but all my invocations are stuck "pending" -- I see they are invoked in the logs, but my function is not run. Glancing around AWS console everything seems ok (and this was working earlier today). How would I go about debugging what is up?
Seems like some sort of websocket timeout?
Copy code
2022-06-08T14:52:48.922-04:00	2022-06-08T18:52:48.900Z 600733b5-b907-4d3d-a8b8-6c26303237e2 INFO connectAndSendMessage()

2022-06-08T14:52:49.039-04:00	2022-06-08T18:52:49.039Z 600733b5-b907-4d3d-a8b8-6c26303237e2 INFO ws.onopen

2022-06-08T14:52:49.039-04:00	2022-06-08T18:52:49.039Z 600733b5-b907-4d3d-a8b8-6c26303237e2 INFO sendMessage() - send request

2022-06-08T14:52:49.040-04:00	2022-06-08T18:52:49.040Z 600733b5-b907-4d3d-a8b8-6c26303237e2 INFO sendMessage() - sending request via WebSocket

2022-06-08T14:52:49.042-04:00	2022-06-08T18:52:49.042Z 600733b5-b907-4d3d-a8b8-6c26303237e2 INFO sendMessage() - start keep alive timer

2022-06-08T14:52:58.904-04:00	END RequestId: 600733b5-b907-4d3d-a8b8-6c26303237e2
Not resolved by a
sst remove
and doing
sst start
again
a
I had similar issue, but I was not even able to remove one of the cloud formation resources. Does
sst remove
removes cloud formation entries?
f
@Michael Holroyd after u start up
sst start
and makes a couple of requests, do you see any output printed out in the terminal?
If it’s still happening, can you send me ur
.build/sst-debug.log
?
m
Heya @Frank I eventually got this working by rolling back to an early version. I think what was happening is that some issue during startup unrelated to
sst
was getting silently swallowed. The logs has a lot of
Copy code
[2022-06-08T18:41:15.041] [DEBUG] websocket - Websocket connection closed { code: 1006, reason: '' }
[2022-06-08T18:41:15.041] [DEBUG] websocket - Reconnecting to websocket server...
[2022-06-08T18:41:15.041] [DEBUG] websocket - startWebSocketClient wss://[xxxxxxxx].<http://execute-api.us-east-1.amazonaws.com/m|execute-api.us-east-1.amazonaws.com/m> m-c-sst-debug-stack-bucket83908e77-1czrt99haqdsp
[2022-06-08T18:41:15.042] [ERROR] websocket - WebSocket connection error Error: getaddrinfo ENOTFOUND [xxxxxxxx].<http://execute-api.us-east-1.amazonaws.com|execute-api.us-east-1.amazonaws.com>
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: '[xxxxxxxx].<http://execute-api.us-east-1.amazonaws.com|execute-api.us-east-1.amazonaws.com>'
}
not sure if the rest of it would be helpful it all looks pretty normal.