R
Railway•2y ago
chihuahua

416 error in LinkedIn Post Inspector

Hello, When my site (https://scribr.me) which is hosted on your servers, is reviewed by the LinkedIn Post Inspector (https://www.linkedin.com/post-inspector/) it returns a 416 Http response. I believe this may be due to how you have setup your servers to handle range requests. Is there anything you can do to look into this? Or advise me how I should best manage this if this is completely out of your control?
Scribr
Scribr - Your all-in-one tool for AI-powered transcription and tran...
Scribr supports real-time, high-accuracy transcriptions and translations in over 50 languages. Ideal for meetings, interviews, podcasts, language studies, and more.
Post Inspector
Get insights into how your content shows up on LinkedIn with Post Inspector.
Solution:
Hello, When my site (https://scribr.me) which is hosted on your servers, is reviewed by the LinkedIn Post Inspector (https://www.linkedin.com/post-inspector/) it returns a 416 Http response. I believe this may be due to how you have setup your servers to handle range requests. Is there anything you can do to look into this? Or advise me how I should best manage this if this is completely out of your control?...
Scribr
Scribr - Your all-in-one tool for AI-powered transcription and tran...
Scribr supports real-time, high-accuracy transcriptions and translations in over 50 languages. Ideal for meetings, interviews, podcasts, language studies, and more.
Post Inspector
Get insights into how your content shows up on LinkedIn with Post Inspector.
Jump to solution
25 Replies
Percy
Percy•2y ago
Project ID: 7160cca6-80d3-4d76-a0c9-ebc86b66dd4e
chihuahua
chihuahuaOP•2y ago
7160cca6-80d3-4d76-a0c9-ebc86b66dd4e
Brody
Brody•2y ago
at first glance this seems like a code issue or even a misconfiguration with your custom domain
chihuahua
chihuahuaOP•2y ago
The react frontend is hosted on railway with the domain provided by namecheap. If it were a code issue, where would you customise how range requests are handled in the react front end? If it's a misconfiguration with the namecheap domain hosting, what should be changed to fix this?
Brody
Brody•2y ago
what's your start script for your react app
chihuahua
chihuahuaOP•2y ago
"build": "tsc && vite build --mode=production"
Brody
Brody•2y ago
what is your start script
chihuahua
chihuahuaOP•2y ago
Actually, sorry it runs this one "start": "vite preview --host"
Brody
Brody•2y ago
there we go, the true issue please follow this guide, expect serve build ... will become serve dist ... https://help.railway.app/project-help/f9v3gkPQRy4UShk5SnoPDH/getting-your-create-react-app-running-on-railway/qHRsgxa5n57xLp1yVgk9fP
chihuahua
chihuahuaOP•2y ago
Not sure if you've correctly identified the issue. The application runs perfectly on railway. There's no issues there. The real issue is how range requests are being handled by the server which results in the 416 error code: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416
416 Range Not Satisfiable - HTTP | MDN
The HyperText Transfer Protocol (HTTP) 416 Range Not Satisfiable error response code indicates that a server cannot serve the requested ranges. The most likely reason is that the document doesn't contain such ranges, or that the Range header value, though syntactically correct, doesn't make sense.
Brody
Brody•2y ago
please follow the guide how did it go?
chihuahua
chihuahuaOP•2y ago
Still working through the deployment. Now getting 404 errors which I'm working through
Brody
Brody•2y ago
what's your current start command
chihuahua
chihuahuaOP•2y ago
serve build -s -n -L -p $PORT
Brody
Brody•2y ago
please review what I have said in this message
chihuahua
chihuahuaOP•2y ago
OK. That's not in the guide you sent me. I'll try changing the start command to serve dist -s -n -L -p $PORT
Brody
Brody•2y ago
yes I know, there is a issue with the guide where the note about vite is hidden, that is why I made that remark in the message before sending the link
chihuahua
chihuahuaOP•2y ago
Thank you @Brody, now is working as intended:
Brody
Brody•2y ago
see, not issue with railway 🙂 you just gotta trust the process
chihuahua
chihuahuaOP•2y ago
I trusted! Tried back and forth with [email protected] for a week and they couldn't help me. @Brody is the MVP
Brody
Brody•2y ago
ha they should have sent you to the discord
chihuahua
chihuahuaOP•2y ago
They did after 9 days!
Brody
Brody•2y ago
9 days, ouch and what? 30 minutes after opening a thread to solved lol
chihuahua
chihuahuaOP•2y ago
Haha yeah. 9 days isn't so bad. At least it's sorted now! Thanks again!
Brody
Brody•2y ago
no problem!
Want results from more Discord servers?
Add your server