Original post from user "gramholo":
Hello,
I am trying to run PHP chat example from github.
I followed all steps and when I try to connect to server with client I get this error in server console
03.Jul.18 15:03:57,045 < INFO> Server "Lightstreamer HTTP Server" listening to *:8282 ...
03.Jul.18 15:05:03,300 <ERROR> Exception caught while checking authentication for user 'null': Connection closed while facing request 200000164603e0803
and this in browser console
POST http://localhost:8282/lightstreamer/create_session.js 500 (Internal Server Error)
and this request data in network tab
[LIST]
[*]General
[*]
[LIST]
[*][COLOR=#545454][B]Request URL: [/B][/COLOR]
http://localhost:8282/lightstreamer/create_session.js
[*][COLOR=#545454][B]Request Method: [/B][/COLOR]
POST
[*][COLOR=#545454][B]Status Code: [/B][/COLOR]
500 Internal Server Error
[*][COLOR=#545454][B]Remote Address: [/B][/COLOR]
[::1]:8282
[*][COLOR=#545454][B]Referrer Policy: [/B][/COLOR]
no-referrer-when-downgrade
[/LIST]
[*]Response Headers[COLOR=#737373]view source[/COLOR]
[LIST]
[*][COLOR=#545454][B]Access-Control-Allow-Credentials: [/B][/COLOR]
true
[*][COLOR=#545454][B]Access-Control-Allow-Origin: [/B][/COLOR]
http://localhost:8282
[*][COLOR=#545454][B]Connection: [/B][/COLOR]
close
[*][COLOR=#545454][B]Content-Length: [/B][/COLOR]
0
[*][COLOR=#545454][B]Date: [/B][/COLOR]
Tue, 3 Jul 2018 13:06:27 GMT
[*][COLOR=#545454][B]Server: [/B][/COLOR]
Lightstreamer-Server/7.0.1 build 1885 (Lightstreamer Server - [URL="http://www.lightstreamer.com"]www.lightstreamer.com[/URL]) ENTERPRISE edition
[*][COLOR=#545454][B]x-accel-buffering: [/B][/COLOR]
no
[/LIST]
[*]Request Headers[COLOR=#737373]view source[/COLOR]
[LIST]
[*][COLOR=#545454][B]Accept: [/B][/COLOR]
*/*
[*][COLOR=#545454][B]Accept-Encoding: [/B][/COLOR]
gzip, deflate, br
[*][COLOR=#545454][B]Accept-Language: [/B][/COLOR]
en-US,en;q=0.9
[*][COLOR=#545454][B]Connection: [/B][/COLOR]
keep-alive
[*][COLOR=#545454][B]Content-Length: [/B][/COLOR]
189
[*][COLOR=#545454][B]Content-Type: [/B][/COLOR]
application/x-www-form-urlencoded
[*][COLOR=#545454][B]Host: [/B][/COLOR]
localhost:8282
[*][COLOR=#545454][B]Origin: [/B][/COLOR]
http://localhost:8282
[*][COLOR=#545454][B]Referer: [/B][/COLOR]
http://localhost:8282/chat/
[*][COLOR=#545454][B]User-Agent: [/B][/COLOR]
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
[/LIST]
[*]Form Data[COLOR=#737373]view source[/COLOR][COLOR=#737373]view URL encoded[/COLOR]
[LIST]
[*][COLOR=#545454][B]LS_op2: [/B][/COLOR]
create
[*][COLOR=#545454][B]LS_phase: [/B][/COLOR]
10081
[*][COLOR=#545454][B]LS_cause: [/B][/COLOR]
nullresp
[*][COLOR=#545454][B]LS_polling: [/B][/COLOR]
true
[*][COLOR=#545454][B]LS_polling_millis: [/B][/COLOR]
0
[*][COLOR=#545454][B]LS_idle_millis: [/B][/COLOR]
0
[*][COLOR=#545454][B]LS_cid: [/B][/COLOR]
pcYgxn8m8 feOojyA1T671i3g2.pz479lDw
[*][COLOR=#545454][B]LS_adapter_set: [/B][/COLOR]
PROXY_PHPCHAT
[*][COLOR=#545454][B]LS_container: [/B][/COLOR]
lsc
[*][COLOR=rgba(84, 84, 84, 0.5)](empty)
[/LIST]
[/LIST]
Can someone tell me where the problem is?