R
Railway8mo ago
sharki

"Uh Oh!!" on load, sveltekit or railway issue?

when i try to load my website https://fairdash-ui-production.up.railway.app/ it serves me "Uh Oh!!" and im not sure whats causing this, im getting an error in the console which i will paste below
30 Replies
Percy
Percy8mo ago
Project ID: 18511ac5-68eb-4ce8-8372-d8c7ef763bbf
sharki
sharki8mo ago
18511ac5-68eb-4ce8-8372-d8c7ef763bbf
709 | });
710 | };
711 | var get_origin = function(headers) {
712 | const protocol = protocol_header && headers.get(protocol_header) || "https";
713 |
714 | const host = headers.get(host_header);
^
TypeError: Invalid header name: ''
at get_origin (/app/build/index.js:714:15)
at ssr (/app/build/index.js:682:23)
709 | });
710 | };
711 | var get_origin = function(headers) {
712 | const protocol = protocol_header && headers.get(protocol_header) || "https";
713 |
714 | const host = headers.get(host_header);
^
TypeError: Invalid header name: ''
at get_origin (/app/build/index.js:714:15)
at ssr (/app/build/index.js:682:23)
Brody
Brody8mo ago
likely caused by a current issue with Railway looks like railway has recovered, can you confirm this is still an issue?
sharki
sharki8mo ago
yes it id still happening the link is in the initial message
Brody
Brody8mo ago
have you tried a redeploy?
sharki
sharki8mo ago
no
Brody
Brody8mo ago
cant hurt, give it a shot
sharki
sharki8mo ago
doing rn still the same
Brody
Brody8mo ago
the code you showed, is that code from sveltekit, or is it your code?
sharki
sharki8mo ago
sveltekit, its on every page load i get that
Brody
Brody8mo ago
did you recently upgrade sveltekit?
sharki
sharki8mo ago
no
Brody
Brody8mo ago
can you roll back your github comments to make sure it's not something in your code?
sharki
sharki8mo ago
i added mongodb as a dependency, could that be why? it worked on development
sharki
sharki8mo ago
GitHub
GitHub - subtosharki/fairdash-ui: the client side for fairdash
the client side for fairdash. Contribute to subtosharki/fairdash-ui development by creating an account on GitHub.
Brody
Brody8mo ago
roll back your commit history to check if you have introduced anything to cause this issue
sharki
sharki8mo ago
.
Brody
Brody8mo ago
.
sharki
sharki8mo ago
thats not helpful, i asked initially if it was a railway or sveltekit issue. or could it be docker?
Brody
Brody8mo ago
please try my suggestions help me, help you
sharki
sharki8mo ago
what do you mean by roll back
Brody
Brody8mo ago
roll back to a previous commit on your repo please consult githubs docs if youre unsure how to do that
sharki
sharki8mo ago
rolled back to before i added mongodb as a dependency, its working. does mongodb not support browser for oid creation
Brody
Brody8mo ago
that would more so be a question for mongo's docs
sharki
sharki8mo ago
it is not a mongodb error, i removed that part of the code and it is still happening
Brody
Brody8mo ago
you rolled back and it worked, so it was something you've changed, please review your code
sharki
sharki8mo ago
that was the only thing that changed from the rollback, i added mongo and used it
Brody
Brody8mo ago
I'm sorry but this wouldn't be an issue with Railway, please review your code maybe someone will come along who knows about this error and could help you, but unfortunately that's not me
sharki
sharki8mo ago
it runs perfectly when built on my local machine, im not sure whats making it act like this on railway
Brody
Brody8mo ago
I agree that's super odd, but working locally does not always mean it will work elsewhere, and working locally also does not rule out a code issue