After entering this URL in my browser http://localhost/laravel-projects/public/
This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500
I am running Laravel project on Xampp. I also tried Vagrant and Homestead installation but am getting the same error.
Related
I'm following the steps in go quickstart gmail api.
On the function getTokenFromWeb, pasting either the long url
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=abcdefg.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&state=state-token
or
http://localhost:8000
results in
This site can't be reached. localhost refused to connect. ERR_CONNECTION_REFUSED
Following the same quickstart but for python works flawlessly.
If I get the token via python and use it in Go quickstart, it also works. So the issue is just on the token from web retrieval.
The issue you are having is related to the removal of oob. When that sample was originally created oob still worked. So it would display a nice web page for you where you could copy the authorization code.
That no longer works so we are forced to use http://127.0.0.1 or localhost. As your machine apparently does not have a web server running its displaying to you a 404 error.
However if you look in the URL bar you will find the authorization code you need in order to authorize your application.
The solution is to simply copy the code from the url bar. If you want to fix the 404 your going to have to figure out how to start a web server in order to host the http://127.0.0.1 from.
The python sample does this by running a local server
creds = flow.run_local_server(port=0)
Php can do it using something like this
php -S localhost:8000 -t examples/
Im not sure how that can be done with Go though.
While automating an application using cypress, I am trying to access a URL by passing username and password in URL itself to bypass auth pop-up
I am using below piece of code to visit the URL :
cy.visit('https://user_dev:jM/q`L689}LG#dev.example.net/')
But I am getting below error from cypress :
cy.visit() failed trying to load:
https://user_dev:jM/q`L689}LG#dev.example.net/
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
Error: getaddrinfo ENOTFOUND user_dev
Common situations why this would fail:
you don't have internet access
you forgot to run / boot your web server
your web server isn't accessible
you have weird network configuration settings on your computer
I tried same thing with other URL but it is working.
Wonder if '/' character in password is creating a problem or Do I need to encode/escape it?
Hi I'm new to postman and I have this problem connecting to local host.
I made a POST request to localhost:3000 and it keeps showing error: connect econnrefuse 127.0.0.1:3000.
I have tried to check and uncheck the Use the system proxy and also add a custom proxy.
It still doesn't work.
Could someone please help me? Thanks
this is the error
2
postman proxy
I just uploaded a laravel application to a live server. At first it loaded on desktop but after visiting on mobile, it gave this response:
Header shows: localhost/
This site can’t be reached
localhost is currently unreachable.
ERR_CONNECTION_FAILED
Error on desktop after visiting again
This page isn’t working
mysite.com sent an invalid response.
ERR_INVALID_REDIRECT
What do I need to do to make it work?
I am uploading the Laravel 5.4 project in a sub domain of rehobothmissionschool.org Cpanel its showing
"This page isn’t working rehobothmissionschool.org is currently
unable to handle this request. HTTP ERROR 500"
I changed the PHP version from 5.6 to 7.1 even that it's not working.enter image description here