Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Server Error when send request to https://cht.sh/:shell-x/ #381

Open
atk1432 opened this issue Apr 18, 2023 · 14 comments
Open

Comments

@atk1432
Copy link

atk1432 commented Apr 18, 2023

When I send request to https://cht.sh/:shell-x/, I receive internal server :

$ curl https://cht.sh/:shell-x/ -v
< HTTP/1.1 500 INTERNAL SERVER ERROR
< Server: nginx/1.13.12
< Date: Tue, 18 Apr 2023 09:53:32 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 290
< Connection: keep-alive

@bayram-dev
Copy link

Same thing for now

curl cht.sh/rust/:learn/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

verbose curl

< HTTP/1.1 500 INTERNAL SERVER ERROR
< Server: nginx/1.13.12
< Date: Tue, 06 Jun 2023 14:44:36 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 290
< Connection: keep-alive

@ask1234560
Copy link

hi guys, i am also getting the same.

curl 'cheat.sh/yt-dlp'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

@codelikeachode
Copy link

I am also getting the same issue.

curl https://cht.sh/:shell-x/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

verbose curl

< HTTP/1.1 500 INTERNAL SERVER ERROR
< Server: nginx/1.13.12
< Date: Wed, 07 Jun 2023 04:04:15 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 290
< Connection: keep-alive

This was referenced Jun 7, 2023
@bayram-dev
Copy link

@atk1432 @codelikeachode @ask1234560 and others

just self-hosted my own cheat sheet at https://ch.batagiev.ru/ (yeah, not as short as it was, but at least something that works)

Might host it till original works

@chubin
Copy link
Owner

chubin commented Jun 7, 2023

I will try to fix the problem today. It is a hardware issue

@chubin
Copy link
Owner

chubin commented Jun 7, 2023

Please check again

@bayram-dev
Copy link

bayram-dev commented Jun 7, 2023

Works like a charm, thx

@abitrolly
Copy link
Collaborator

https://cht.sh/:shell-x/ still gives 500.
https://cht.sh/rust/:learn/ gives 404.

@bayram-dev
Copy link

bayram-dev commented Jun 7, 2023

Hmm, strange behaviour. Adding slash after user query return 404.

curl -I https://cht.sh/rust/:learn | grep HTTP
HTTP/1.1 200 OK

And

curl -I https://cht.sh/rust/:learn/ | grep HTTP
HTTP/1.1 200 OK

Edit: returns 404 with status code 200 😆

But for some reason webview show 404 with slash and actual result with 200 without slash

:shell-x => Unknown topic.

@bayram-dev
Copy link

bayram-dev commented Jun 7, 2023

My guess is

@app.route("/<path:topic>", methods=["GET", "POST"])
makes error, which is described in Flask docs, trailing slash

The canonical URL for the projects endpoint has a trailing slash. It’s similar to a folder in a file system. If you access the URL without a trailing slash (/projects), Flask redirects you to the canonical URL with the trailing slash (/projects/).

Might try to check it tomorrow.

@abitrolly
Copy link
Collaborator

If not that, then the code should end in

# at the moment, we just remove trailing slashes
# so queries python/ and python are equal
# query = _strip_hyperlink(query.rstrip('/'))
topic, keyword, search_options = _parse_query(query)
and fail somewhere around here.

@evrial
Copy link

evrial commented Oct 21, 2023

Looks like this project is ded. Tests are failing, 500 error. 1GB of ballast code sources from Rosetta code is unsearchable
I don't see a single reason to write double tests in pytest and bash. Can you explain?

curl cht.sh/python/Dijkstras-algorithm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Self-hosted:

cht.sh> python Dijkstras-algorithm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

@matenestor
Copy link

I am still having the problem as well

> cht python tutorial
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

@foodornt
Copy link

ah, down again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants