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

unexpected path prefix #257

Open
21888 opened this issue Jul 20, 2022 · 3 comments
Open

unexpected path prefix #257

21888 opened this issue Jul 20, 2022 · 3 comments

Comments

@21888
Copy link

21888 commented Jul 20, 2022

http://localhost:8080/monitoring/
http://localhost:8080/

unexpected path prefix

What does he mean by launching directly as HTTP

@fc221
Copy link

fc221 commented Sep 26, 2022

Brother, have you solved it? I have encountered similar problems

@binary4cat
Copy link

I'm currently having this problem.

@pkierski
Copy link

pkierski commented Apr 7, 2023

I guess you've tried to run it on Windows?

I've faced the same issue. It comes from exploiting filepath.Abs() here. On Windows filepath.Abs(r.URL.Path) transforms "/monitoring" to "c:\monitoring" which is correct absolute path in terms of filesystem, but in this place is invalid. The next check (is the path starting with asynqmon root?) fails.

filepath.Abs(r.URL.Path) should be replaced with filepath.ToSlash(filepath.Clean(r.URL.Path)). I'll try to prepare pull request for it.

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

4 participants