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

404 error when loading / #129

Open
exhuma opened this issue Aug 9, 2019 · 4 comments
Open

404 error when loading / #129

exhuma opened this issue Aug 9, 2019 · 4 comments

Comments

@exhuma
Copy link

exhuma commented Aug 9, 2019

I have a fairly large code-base of which I want to profile one specific path through the app. I have set up a small script using cProfile.runctx but snakeviz failes loading it. All requests to / return a 404 error.

@jiffyclub
Copy link
Owner

/ isn't a path programmed into snakeviz and I don't expect users to end up there. How are you starting snakeviz and ending up at /?

@exhuma
Copy link
Author

exhuma commented Aug 11, 2019

I'm running it on a remote server, forward the port and then open it in a local browser.

I noticed that it tries to open a browser, which can't work on the remote box as it is a headless machine.

@jiffyclub
Copy link
Owner

People definitely do this using the server-only mode in snakeviz, but since there's no handler for / you'll need to go directly to the full URL for profile, which I expect snakeviz to print out when you start it. This seems like it might be similar to #58.

@exhuma
Copy link
Author

exhuma commented Aug 23, 2019

Specifying the full URI does make it work actually. Would be helpful to have some kind of default output on / though. If you like I could do a PR for this? If so, any things I should be aware of? And do you have any preference where and how it should be implemented?

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

2 participants