GithubHelp home page GithubHelp logo

Comments (18)

gaillafr avatar gaillafr commented on July 20, 2024 6

Hi @Crinsane,

I faced the same issue and resolved it by manually adding 'http://' in 'authHost' & 'host'.

Hope it helps !

from laravel-echo-server.

shijunti19 avatar shijunti19 commented on July 20, 2024 6

if "authHost": "http://nevermind.dev",
null
Could not send authentication request.

if "authHost": "nevermind.dev",
Error: Invalid URI "nevermind.dev/broadcasting/auth"
Could not send authentication request.

from laravel-echo-server.

rijensky avatar rijensky commented on July 20, 2024

I'm facing the same problem, I think with you it's just a typo.

This is your code:
"authHost": "http://intranet",

And it shoud be:
"authHost": "http://intranet.dev",

Hope that helps. I'm going to look for typos in my code.
If anyone sees anything wrong here, please help :(

{
"appKey": "base64:qVtWajlvBUnCpzddFueY/bXM1U34BmqtbPYTtyqxbRM=",
//"appKey": "r8fiq6hbtk7fo5aa9s1o0h29nbeuq5pd1c1ngsimu99kciebado8m1dbs506",
"authEndpoint": "/broadcasting/auth",
"authHost": null,
"database": "redis",
"databaseConfig": {
"redis": {},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": false,
"host": "nevermind.dev",
"port": "6001",
"protocol": "http",
"referrers": [],
"sslCertPath": "",
"sslKeyPath": "",
"verifyAuthPath": true,
"verifyAuthServer": false
}

from laravel-echo-server.

rijensky avatar rijensky commented on July 20, 2024

Solved it.
The authHost should include http and the host must not include http.
For example, on the nevermind.dev laravel-echo-server.json, it should look like this:

"authHost": "http://nevermind.dev",
"host": "nevermind.dev",

from laravel-echo-server.

feenx avatar feenx commented on July 20, 2024

+1

from laravel-echo-server.

khaledelmahdi avatar khaledelmahdi commented on July 20, 2024

Same results as @shijunti19

from laravel-echo-server.

Crinsane avatar Crinsane commented on July 20, 2024

This issue is closed @tlaverdure But it's actually not solved.
When you have Windows Authentication activated on IIS, it's impossible to use this, because there are no Windows credentials send for the NTLM authentication. Is there a way to specify those?

from laravel-echo-server.

feenx avatar feenx commented on July 20, 2024

I'm getting the results listed above running this in my development
environment running on Ubuntu thru vagrant so Windows is not in between
there for me.

On Thu, Oct 13, 2016, 6:40 AM Rob Gloudemans [email protected]
wrote:

This issue is closed @tlaverdure https://github.com/tlaverdure But it's
actually not solved.
When you have Windows Authentication activated on IIS, it's impossible to
use this, because there are no Windows credentials send for the NTLM
authentication. Is there a way to specify those?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#37 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI086C-pDB_pOMe6IeMjSGZo0vYsbbzNks5qzhiRgaJpZM4KAVew
.

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on July 20, 2024

Yes, this is something I get a lot of as well.

Still trying to do more debugging

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on July 20, 2024

@Crinsane @rijensky

Hey guys don't use .dev for your urls

I've been badly bitten with this!

#57

from laravel-echo-server.

feenx avatar feenx commented on July 20, 2024

#53 (comment)

from laravel-echo-server.

jaceju avatar jaceju commented on July 20, 2024

I had the same problem too, but I found the response from laravel-echo-server had this error:

RedisBroadcaster->auth(object(Request)) in BroadcastManager.php line 306

And RedisBroadcaster would throw exception when:

if (Str::startsWith($request->channel_name, ['private-', 'presence-']) && ! $request->user())

The $request->user() will be null if the session is not authenticated. So it should add auth middleware to web routes before you using Echo.

FYR.

from laravel-echo-server.

feenx avatar feenx commented on July 20, 2024

My issue was that I had the server running on a different host than my app was running on. So the laravel auth cookies weren't being sent along the websocket so it could be used to auth.

#53 (comment)

from laravel-echo-server.

asvechkar avatar asvechkar commented on July 20, 2024

still have this problem

from laravel-echo-server.

stoneworld avatar stoneworld commented on July 20, 2024

still have this problem

from laravel-echo-server.

xiuxiubiu avatar xiuxiubiu commented on July 20, 2024

I resolved it.
authHost: http://example.com
host: example.com
do not http.

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on July 20, 2024

Not sure if this is still happening, but if it is, please open a new issue.

from laravel-echo-server.

1mursaleen avatar 1mursaleen commented on July 20, 2024

Soultion to Common Problems faced by many users while setting up Laravel Echo
https://gist.github.com/rauschmerscen/2f2265976d59267f3bfccb339b27be44

from laravel-echo-server.

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.