Howdy all, I just jumped back on after the holiday...
# sst
s
Howdy all, I just jumped back on after the holidays and was excited to try out the console. I am getting an error on load.
Copy code
TypeError: Cannot read properties of undefined (reading 'routes')
    at index.a7e2d5b4.js:formatted:223
    at vendor.b5a71c7d.js:formatted:27543
    at GC (vendor.b5a71c7d.js:formatted:27473)
    at GC (vendor.b5a71c7d.js:formatted:27479)
    at mMe (vendor.b5a71c7d.js:formatted:27444)
    at Object.tt.retry [as queryFn] (index.a7e2d5b4.js:formatted:218)
Not sure why it is hitting that construct either. I am running a
NextjsSite
construct and an
Api
construct.
p
@thdxr was looking at a similar issue I was hitting - just with the table construct instead.
Spotted it yesterday
m
can you tell me the exact issue
p
I posted the symptoms in the SST channel and sent @thdxr the error message, etc. The error I was getting was near identical to the one Sean hit:
Copy code
TypeError: Cannot read properties of undefined (reading 'consumers')
    at index.a7e2d5b4.js:1
    at vendor.b5a71c7d.js:140
    at GC (vendor.b5a71c7d.js:140)
    at GC (vendor.b5a71c7d.js:140)
    at mMe (vendor.b5a71c7d.js:140)
    at Object.tt.retry [as queryFn] (index.a7e2d5b4.js:1)
onError @ vendor.b5a71c7d.js:52
c @ vendor.b5a71c7d.js:52
(anonymous) @ vendor.b5a71c7d.js:52
He fixed that issue last yesterday but then I was hitting another issue:
Copy code
TypeError: Cannot read properties of undefined (reading 'StackResourceDetail')
    at R_e (vendor.b5a71c7d.js:formatted:27017)
    at vendor.b5a71c7d.js:formatted:26900
    at u (vendor.b5a71c7d.js:formatted:12601)
    at Object.next (vendor.b5a71c7d.js:formatted:12543)
    at s (vendor.b5a71c7d.js:formatted:12501)
onError @ vendor.b5a71c7d.js:formatted:10906
I'm not sure where he got to with fixing that one - I haven't tried it again this morning yet.
t
@Sean Matheson any network errors?
Also can you hard refresh the console
s
Hey @thdxr - I've managed to look at this again. The hard refresh had no effect, and there were no network errors. I did look through the responses of the requests and noticed there was a reference to a stack that I had removed from my app. Whilst I had removed the stack definition, the associated stack was not removed within AWS. I manually deleted the stack and refreshed the console, it all works now.
t
Ah interesting 🤔
I see what's going on - both you and phil must have had stacks deployed with the old metadata format that you removed but were never deleted
s
Rad, glad the source of the issue is surfaced.
SOoooo beautiful the console.
Great work!
😍
t
Thanks! Hope it's helpful
s
Only been using it for 5 minutes, but the value of it is very quickly becoming apparent.
Huge win for ya'll as a USP
p
Is that something we need to fix our end somehow?
t
Poke through the cloudformation UI and see if there are stacks there that shouldn't be there anymore
Can probably look at when it was last updated
p
We almost certainly have a bunch of old stacks in there. I go through and clear them up from time to time but they always build up again
I've had a look through and the stacks and everything looks recent. Unfortunately, I'm now being told I have no stacks at all... If I look at the response I can see lots of functions but stacks does look empty.
I definitely have stacks deployed though
t
How many stacks are in your AWS account? There's a bug right now where when we're scanning through them we're not paging all of them
p
25
In my aws account - hang on
169? AWS Lamba - Applications right?
(25 is how many in my current stage)
It's just started trying to display things. Taking a while to populate things but it's definitely found some stuff this time
Are buckets supposed to be working yet (apologies if it's written down somewhere they're not supposed to)
t
Yeah they are
what are you seeing?
p
Ah. I'm just seeing a completely blank space
t
any console errors?
p
nope
no network errors either
the object I get back only has app, functions, stacks and stage inside it
t
If you go to the stacks section are you seeing all 25? Or is it missing some
p
missing some and most are empty
seems to be showing 21
but of those 21 headings, only 5 have a table within them
t
Just pushed a change can you refresh the console and see if more stacks show up?
p
Just refreshing now
That's better - get buckets too now