Giter Club home page Giter Club logo

Comments (14)

bayram-dev avatar bayram-dev commented on July 22, 2024 3

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

from cheat.sh.

chubin avatar chubin commented on July 22, 2024 3

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

from cheat.sh.

chubin avatar chubin commented on July 22, 2024 3

Please check again

from cheat.sh.

bayram-dev avatar bayram-dev commented on July 22, 2024 2

@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

from cheat.sh.

abitrolly avatar abitrolly commented on July 22, 2024 2

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

from cheat.sh.

ask1234560 avatar ask1234560 commented on July 22, 2024 1

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>

from cheat.sh.

bayram-dev avatar bayram-dev commented on July 22, 2024 1

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.

from cheat.sh.

abitrolly avatar abitrolly commented on July 22, 2024 1

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.

from cheat.sh.

codelikeachode avatar codelikeachode commented on July 22, 2024

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

from cheat.sh.

bayram-dev avatar bayram-dev commented on July 22, 2024

Works like a charm, thx

from cheat.sh.

bayram-dev avatar bayram-dev commented on July 22, 2024

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.

from cheat.sh.

evrial avatar evrial commented on July 22, 2024

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>

from cheat.sh.

matenestor avatar matenestor commented on July 22, 2024

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>

from cheat.sh.

foodornt avatar foodornt commented on July 22, 2024

ah, down again?

from cheat.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.