Giter Site home page Giter Site logo

404 Not Found about gotty HOT 24 CLOSED

fieu avatar fieu commented on June 14, 2024
404 Not Found

from gotty.

Comments (24)

yudai avatar yudai commented on June 14, 2024

Did you add :8080?

from gotty.

fieu avatar fieu commented on June 14, 2024

Yes.

from gotty.

yudai avatar yudai commented on June 14, 2024

Could you provide the URL you accessed?

from gotty.

fieu avatar fieu commented on June 14, 2024

Sure.

http://127.0.0.1:8080/6kbv8603

I was using --random-url

from gotty.

yudai avatar yudai commented on June 14, 2024

Cloud you try the latest pre-release? It has some changes in handling URLs that might solve your issue.

from gotty.

fieu avatar fieu commented on June 14, 2024

Sure. :)

from gotty.

fieu avatar fieu commented on June 14, 2024

@yudai How would I go about this? I'm on a Mac.

from gotty.

yudai avatar yudai commented on June 14, 2024

Try this one: https://github.com/yudai/gotty/releases/download/pre-release/darwin_amd64.tar.gz

from gotty.

fieu avatar fieu commented on June 14, 2024

Thank you.

from gotty.

fieu avatar fieu commented on June 14, 2024

Using the one you sent me: https://shel.io/f/aiUg.png

from gotty.

yudai avatar yudai commented on June 14, 2024

Could you try gotty --random-url --permit-write --addr 127.0.0.1 --port 8080 top?

It looks like there is another bug in parsing arguments

from gotty.

fieu avatar fieu commented on June 14, 2024

Error(s): https://shel.io/f/5ppd.png

from gotty.

yudai avatar yudai commented on June 14, 2024

Thanks for testing. I'll test on Mac and try to figure out what's happening soon. Give me some time.

from gotty.

fieu avatar fieu commented on June 14, 2024

No problem. I am here to test anything you need. :)

from gotty.

yudai avatar yudai commented on June 14, 2024

I could not reproduce your problem.
However, I added an error handling to the code around you got the error. Could you redownload the latest one from the same URL and try it? And I'd like to see what happens when you run gotty without sudo.

from gotty.

nzyuzin avatar nzyuzin commented on June 14, 2024

I had just the same problem before I updated to current revision (from 94f571d to 56ae9ab).
It seems something in this range has fixed the issue.

@nurdturd you could try fetching latest changes to see if it's fixed for you too.

P.S. Problem disappears after 67b54b7.

from gotty.

fieu avatar fieu commented on June 14, 2024

Sure. I got this: https://shel.io/f/8BsP.png

from gotty.

nzyuzin avatar nzyuzin commented on June 14, 2024

Same for me for the release binary.
Works fine with binary built with go get github.com/yudai/gotty though.

from gotty.

yudai avatar yudai commented on June 14, 2024

Found the root cause: http://stackoverflow.com/questions/20609415/cross-compiling-user-current-not-implemented-on-linux-amd64

from gotty.

yudai avatar yudai commented on June 14, 2024

Pushed the fix to the latest release. I hope it will work on your environment.

from gotty.

fieu avatar fieu commented on June 14, 2024

Thanks!

from gotty.

fieu avatar fieu commented on June 14, 2024

Using the new one, another 404 error. https://shel.io/f/MjMH.png

from gotty.

yudai avatar yudai commented on June 14, 2024

Hi, thank you for the report. Unfortunately, I cannot reproduce the issue you are experience.
Could you paste the full log? If your browser reaches the gotty server, gotty should output some GET lines like below:

./gotty -a 127.0.0.1 -r top
2015/08/24 12:22:15 Server is starting with command: top
2015/08/24 12:22:15 URL: http://127.0.0.1:8080/17qe10bp/
2015/08/24 12:22:33 GET /17qe10bp/
2015/08/24 12:22:33 GET /17qe10bp/hterm.js
2015/08/24 12:22:34 GET /17qe10bp/gotty.js
2015/08/24 12:22:34 GET /17qe10bp/ws
2015/08/24 12:22:34 New client connected: 127.0.0.1:55083
2015/08/24 12:22:34 Command is running for client 127.0.0.1:55083 with PID 45432
2015/08/24 12:22:47 GET /invalid_token/
2015/08/24 12:22:47 Command exited for: 127.0.0.1:55083
2015/08/24 12:22:47 Connection closed: 127.0.0.1:55083

In this case, the 404 error page was shown by accessing http://127.0.0.1:8080/invalid_token/ and that was logged as 2015/08/24 12:22:47 GET /invalid_token/ .

from gotty.

yudai avatar yudai commented on June 14, 2024

Closing as no activities last week. Please reopen if this issue still exists.

from gotty.

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.