Skip to content
New issue

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

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

Already on GitHub? # to your account

Client returns 404 #8

Closed
rgr opened this issue Oct 24, 2020 · 5 comments
Closed

Client returns 404 #8

rgr opened this issue Oct 24, 2020 · 5 comments

Comments

@rgr
Copy link

rgr commented Oct 24, 2020

Hi,

I'm on laravel 8 with a fresh install of laravel-profiler and client on windows and when I npm run pc, it opens a browser tab with a 404 error "Cannot GET /". HTTP and socket port have been correctly defined in profiler config file.

Any idea on how to deal with this ?

Thanks

@jkocik
Copy link
Owner

jkocik commented Oct 24, 2020

Hi,

Modify profiler-client script like so:

"profiler-client": "http-server node_modules/laravel-profiler-client/dist/",

and try again.

@rgr
Copy link
Author

rgr commented Oct 25, 2020

It launches on 8081 with a ERR_INVALID_REDIRECT and when I get him back on 8080 I still get the "Cannot GET /"...

@jkocik
Copy link
Owner

jkocik commented Oct 25, 2020

I don't have Windows to try it now, but it looks like this is http-server package issue. Try to add /index.html at the end of url you try to open in your browser. If this does not work check this: http-party/http-server#525

@rgr
Copy link
Author

rgr commented Oct 25, 2020

Got it working ! Thanks 👍

@hardik-gajera
Copy link

Thank after adding index.html its works

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

No branches or pull requests

3 participants