请大神帮助-----出新问题了。

bifnwfn88
disconnect packetthink\exception\ErrorException: Trying to get property of non-obj
ect in E:\www\\vendor\workerman\phpsocket.io\src\Engine\Socket.php:42

Stack trace:
#0 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Socket.php(42): t
hink\Error::appError(8, 'Trying to get p...', 'E:\\www\\...', 42, Array)

#1 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Engine.php(292):
PHPSocketIO\Engine\Socket->maybeUpgrade(Object(PHPSocketIO\Engine\Transports\Web
Socket))
#2 : PHPSocketIO\Engine\Engine->dealWebSocketConnect(NULL, tr
ue, Object(PHPSocketIO\Engine\Protocols\Http\Request), Object(PHPSocketIO\Engine
\Protocols\Http\Response))
#3 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Engine.php(135):
call_user_func(Array, NULL, true, Object(PHPSocketIO\Engine\Protocols\Http\Reque
st), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#4 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Engine.php(261):
PHPSocketIO\Engine\Engine->verify(Object(PHPSocketIO\Engine\Protocols\Http\Reque
st), Object(PHPSocketIO\Engine\Protocols\Http\Response), true, Array)
#5 : PHPSocketIO\Engine\Engine->onWebSocketConnect(Object(Wor
kerman\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\Reque
st), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#6 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Protocols\WebSock
et\RFC6455.php(283): call_user_func_array(Array, Array)
#7 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Protocols\WebSock
et.php(84): PHPSocketIO\Engine\Protocols\WebSocket\RFC6455::dealHandshake(Object
(Workerman\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\R
equest), Object(PHPSocketIO\Engine\Protocols\Http\Response))
#8 E:\www\\vendor\workerman\phpsocket.io\src\Engine\Protocols\SocketI
O.php(38): PHPSocketIO\Engine\Protocols\WebSocket::dealHandshake(Object(Workerma
n\Connection\TcpConnection), Object(PHPSocketIO\Engine\Protocols\Http\Request),
Object(PHPSocketIO\Engine\Protocols\Http\Response))
#9 E:\www\\vendor\workerman\workerman\Connection\TcpConnection.php(44
4): PHPSocketIO\Engine\Protocols\SocketIO::input('GET /socket.io/...', Object(Wo
rkerman\Connection\TcpConnection))
#10 : Workerman\Connection\TcpConnection->baseRead(Resource i
d #11722)
#11 E:\www\\vendor\workerman\workerman\Events\Select.php(257): call_u
ser_func_array(Array, Array)
#12 E:\www\\vendor\workerman\workerman\Worker.php(808): Workerman\Eve
nts\Select->loop()
#13 E:\www\\vendor\workerman\workerman\Worker.php(457): Workerman\Wor
ker->run()
#14 E:\www\\vendor\workerman\workerman\Worker.php(366): Workerman\Wor
ker::runAllWorkers()
#15 E:\www\\app\core\controller\Sio.php(115): Workerman\Worker::runAl
l()
#16 E:\www\\thinkphp\library\think\Loader.php(409): app\core\controll
er\Sio->__construct(Object(think\Request))
#17 E:\www\\thinkphp\library\think\App.php(334): think\Loader::contro
ller('sio', 'controller', false, 'Error')
#18 E:\www\\thinkphp\library\think\App.php(133): think\App::module(Ar
ray, Array, true)
#19 E:\www\\thinkphp\start.php(18): think\App::run()
#20 E:\www\\sioserver.php(12): require('E:\\www\\...')
#21 {main}
2699 7 0
7个回答

walkor 打赏

可以稳定重新这个问题么?如果可以发下服务端和客户端代码,以及重现步骤

  • 暂无评论
bifnwfn88

不是百分百重现的。这报错,我现在都不知道在是哪代码引起的。

  • 暂无评论
bifnwfn88

大神救救我吧,今天又出这个问题了。

  • 暂无评论
bifnwfn88

$this->upgradeTimeoutTimer = Timer::add(
$this->server->upgradeTimeout,
array($this, 'upgradeTimeoutCallback'),
array($transport), false
);
$this->server->upgradeTimeout, 是这个代码报错了。麻烦大神帮我分析一下。谢谢。

  • 暂无评论
walkor 打赏

没有重现步骤无法定位的

  • 暂无评论
bifnwfn88

现在确实重现不了。不一定什么时候出。很是迷糊,之前那个问题解决好了,已经不出来。现在出换成出这个问题。
是我业务代码有问题吗???

  • 暂无评论
walkor 打赏

应该不是

  • 暂无评论
年代过于久远,无法发表回答
×
🔝