R
Railway13mo 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
Percy13mo ago
Project ID: 18511ac5-68eb-4ce8-8372-d8c7ef763bbf
sharki
sharkiOP13mo 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
Brody13mo ago
likely caused by a current issue with Railway looks like railway has recovered, can you confirm this is still an issue?
sharki
sharkiOP13mo ago
yes it id still happening the link is in the initial message
Brody
Brody13mo ago
have you tried a redeploy?
sharki
sharkiOP13mo ago
no
Brody
Brody13mo ago
cant hurt, give it a shot
sharki
sharkiOP13mo ago
doing rn still the same
Brody
Brody13mo ago
the code you showed, is that code from sveltekit, or is it your code?
sharki
sharkiOP13mo ago
sveltekit, its on every page load i get that
Brody
Brody13mo ago
did you recently upgrade sveltekit?
sharki
sharkiOP13mo ago
no
Brody
Brody13mo ago
can you roll back your github comments to make sure it's not something in your code?
sharki
sharkiOP13mo ago
i added mongodb as a dependency, could that be why? it worked on development
sharki
sharkiOP13mo 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
Brody13mo ago
roll back your commit history to check if you have introduced anything to cause this issue
sharki
sharkiOP13mo ago
.
Brody
Brody13mo ago
.
sharki
sharkiOP13mo ago
thats not helpful, i asked initially if it was a railway or sveltekit issue. or could it be docker?
Brody
Brody13mo ago
please try my suggestions help me, help you
sharki
sharkiOP13mo ago
what do you mean by roll back
Brody
Brody13mo ago
roll back to a previous commit on your repo please consult githubs docs if youre unsure how to do that
sharki
sharkiOP13mo ago
rolled back to before i added mongodb as a dependency, its working. does mongodb not support browser for oid creation
Brody
Brody13mo ago
that would more so be a question for mongo's docs
sharki
sharkiOP13mo ago
it is not a mongodb error, i removed that part of the code and it is still happening
Brody
Brody13mo ago
you rolled back and it worked, so it was something you've changed, please review your code
sharki
sharkiOP13mo ago
that was the only thing that changed from the rollback, i added mongo and used it
Brody
Brody13mo 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
sharkiOP13mo ago
it runs perfectly when built on my local machine, im not sure whats making it act like this on railway
Brody
Brody13mo 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
Want results from more Discord servers?
Add your server