#'blabla' does not exist on 'blabla'

88 messages · Page 1 of 1 (latest)

mental folio
#

also this

#
app.register(fastifySecureSession, {
    key: Buffer.from(process.env.COOKIE_SECRET!, 'hex'),
    cookieName: 'session_id',
    cookie: {
        httpOnly: true,
        path: '/',
    },
});
kind jacinth
#

.

forest flower
#

Well we can't help much without more code and context

kind jacinth
forest flower
#

I mean the error was kinda self explantory, unless you didn't expect that it's a string (and maybe it even shouldn't be?)?

kind jacinth
#

its whatever coming from the api

forest flower
#

Well, if it should indeed be a string, then just... Don't Access nonexsistent properties on it

kind jacinth
#

spoonfeed me this timme

forest flower
#

Are the types correct in the first place, should it be a string?

kind jacinth
#

i dont know bro

#

im not the one who wrote this code

#

i tried reading it its pain in the ass

#

but it should be string

forest flower
#

Ok
Your not even the one who asked lmao

#

Ok...

kind jacinth
#

so lets sat its string

forest flower
#

And will dateCreated property actually exsist on it?

kind jacinth
#

yes

#

whats date.created

#

no datecreated is something else

kind jacinth
#

im such dmbass

#

i sent nextjs error

forest flower
kind jacinth
#

the code i sent is the error

#

line in my terminal

#

what u think is causing it

forest flower
#

Is it even caused by part of your code?

kind jacinth
#

what else would it be caused by

oblique tundra
#

show us dashboard.tsx line 67

kind jacinth
oblique tundra
#

we need the stack trace
you're giving us very little information

kind jacinth
#

nothing else

oblique tundra
#

show the stack trace please

kind jacinth
#

wait

mental folio
#

@oblique tundra

#

@forest flower

oblique tundra
oblique tundra
kind jacinth
#

what

#

its that code

#

i serve

#

i sent

oblique tundra
#

okay.. what is process.env.COOKIE_SECRET

kind jacinth
#

buddy why should i give you my cookie secret

oblique tundra
#

im not asking for it, "buddy"

#

im asking what the type of it is

#

and how its being passed

kind jacinth
#

string

oblique tundra
#

because it looks to be undefined

oblique tundra
kind jacinth
#

i don't know that part

oblique tundra
#

well the answer is its not

#

where are you storing it?

kind jacinth
#

wait bro

#

LOL

#

lmao im such a silly boy

oblique tundra
kind jacinth
#

i think its because theres no .env file

#

i pulled from github

#

not added .env

#

yup

oblique tundra
#

lmao

kind jacinth
#

this is about nodemailer right

oblique tundra
#

yeah its a smtp error

kind jacinth
#

what do i put here

oblique tundra
#

who to reply to

#

it has an :i: next to it

oblique tundra
# kind jacinth

it's the email that smtp clients fill when someone hits reply

kind jacinth
#

i don't care about that i need to fix these for

#

these cors errors

oblique tundra
#

this is off-topic now
please type !resolved to close this thread & find a related server

kind jacinth
#

!resolved

mental folio
#

!resolved

raw solstice
#

🤣 idk i did a random seach and ended up here

#

this thread is epic

#

sorry no offense

oblique tundra