#If you just do the GET / from the server

1 messages · Page 1 of 1 (latest)

sour pivot
#

ima just do this

#

it seems like the headers is the issue weirdly

#

if I remove headers from the fetch it goes through

earnest canyon
#

Are your headers in accord to the Headers interface ?

#

what are those code and roblox_code_verifier ?

sour pivot
#

they are for PKCE oauth

#

flow

#

and im just using what the mozilla says for headers

#

oh crap

#

maybe headers just does not take a headers Object

#

and just a regular table

#

let me try

#

even if i do just a regular object

#

and not the Headers object

#

i still get the same result

#

just not sure why headers

#

is causing issues here

earnest canyon
sour pivot
#

what do you mean

#

oh..

#

wait..

earnest canyon
#

I mean, the headers need to follow a specific interface. Only certain keys and values are accepted (the ones described in the docs I sent)

sour pivot
#

🤦 i wonder if this is bceause

#

my god

#

wait

#

nvm..

sour pivot
#

since when

#

cant I send any arbitrary header key

#

there are "standards" for headers that are reserved keys but i thought you could pass any header

earnest canyon
#

Ah sorry, yes they can be arbitrary

sour pivot
#

right

#

im just confuzzled on why passing the headers is causing the idle

#

wait a minute..

earnest canyon
#

Do you have some middleware checking headers ? Maybe there is something blocking there

#

In the server on 3000

#

What is this authPlugin ?

sour pivot
#

fuck

#

i want to die

#

the issue the entire time

#

was that the key had underscores??????

#

but googling says underscores are fine in headers??

#

@earnest canyon

#

incase you wanted to know the solution

#

fuck dude like

#

how am i suppose to know that shit

#

i wonder if this is just a error with elysia ?

earnest canyon
#

Yeah, I guess it's a third party middleware that is putting rules for the headers

#

very weird

#

But it's definitely something on the http implementation from bun

sour pivot
#

hmm

#

possible

#

could be elysia, could be bun

#

unsure

#

either way ill just not use underscores going forward