Comments (18)
Hi @Crinsane,
I faced the same issue and resolved it by manually adding 'http://' in 'authHost' & 'host'.
Hope it helps !
from laravel-echo-server.
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.
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.
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.
+1
from laravel-echo-server.
Same results as @shijunti19
from laravel-echo-server.
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.
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.
Yes, this is something I get a lot of as well.
Still trying to do more debugging
from laravel-echo-server.
Hey guys don't use .dev
for your urls
I've been badly bitten with this!
from laravel-echo-server.
from laravel-echo-server.
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.
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.
from laravel-echo-server.
still have this problem
from laravel-echo-server.
still have this problem
from laravel-echo-server.
I resolved it.
authHost: http://example.com
host: example.com
do not http.
from laravel-echo-server.
Not sure if this is still happening, but if it is, please open a new issue.
from laravel-echo-server.
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)
- Is the package compromised? HOT 6
- Laravel-echo-server events listeners custom callbacks
- Redis6 ACL Support HOT 1
- 运行一会,就会中断,提示截图显示的错误 HOT 2
- Cannot find module '../dist/cli' - supervisord
- Redis 6 ACL config HOT 1
- Connection refused on docker
- Laravel Echo Server work and client side error only at server HOT 2
- Is there ways to emit data from client (socket.io-client) to laravel-echo-server? HOT 2
- Laravel Echo PresenceChannel vs listen events doesn't work HOT 2
- 使用Laravel 5.8 广播系统,本地研发没有事情,上线后握手阶段,第一次OK,第二次报502,第三次报session id unknown,现在不知道是那个地方出问题了?求帮助 HOT 1
- Is `tlaverdure/laravel-echo-server` abandoned? HOT 6
- Is the cors configuration even working? HOT 1
- echo server socket.io.js error
- support redis cluster
- Redis TTL key is store forever
- CSRF token mismatch after session timeout
- npx laravel-echo-server start HOT 1
- Unable to join channel. Member data for presence channel missing HOT 1
- Is this project compatible with Socket.io v4? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-echo-server.