Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function write() on null #3

Closed
pvolyntsev opened this issue Feb 26, 2019 · 1 comment
Closed

Call to a member function write() on null #3

pvolyntsev opened this issue Feb 26, 2019 · 1 comment

Comments

@pvolyntsev
Copy link

pvolyntsev commented Feb 26, 2019

Exception

Exception 'Error' with message 'Call to a member function write() on null in /app/vendor/valga/fbns-react/src/Lite/ReactMqttClient.php:615'

Stack trace

#0 /app/vendor/valga/fbns-react/src/Lite/ReactMqttClient.php(493): Fbns\Client\Lite\ReactMqttClient->startFlow(Object(BinSoul\Net\Mqtt\Flow\IncomingPublishFlow))
#1 /app/vendor/valga/fbns-react/src/Lite/ReactMqttClient.php(465): Fbns\Client\Lite\ReactMqttClient->handlePacket(Object(BinSoul\Net\Mqtt\Packet\PublishRequestPacket))
#2 /app/vendor/valga/fbns-react/src/Lite/ReactMqttClient.php(391): Fbns\Client\Lite\ReactMqttClient->handleReceive('2\xAC\x04\x00\x0276*\xADx\xDA\x95R]o...')
#3 /app/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): Fbns\Client\Lite\ReactMqttClient->Fbns\Client\Lite\{closure}('2\xAC\x04\x00\x0276*\xADx\xDA\x95R]o...')
#4 /app/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#5 /app/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('2\xAC\x04\x00\x0276*\xADx\xDA\x95R]o...')
#6 /app/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#7 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #34791, Object(React\EventLoop\StreamSelectLoop))
#8 /app/vendor/react/event-loop/src/StreamSelectLoop.php(236): call_user_func(Array, Resource id #34791, Object(React\EventLoop\StreamSelectLoop))
#9 /app/vendor/react/event-loop/src/StreamSelectLoop.php(205): React\EventLoop\StreamSelectLoop->waitForStreamActivity(990672)

composer.json

{
  "require": {
        "php": ">=7.0.0",
        "ext-curl": "*",
        "ext-mbstring": "*",
        "ext-bcmath": "*",
        "react/event-loop": "^0.4.3",
        "react/promise": "^2.5",
        "react/socket": "^0.8",
        "binsoul/net-mqtt-client-react": "^0.3.2",
        "clue/socks-react": "^0.8.2",
        "clue/http-proxy-react": "^1.1.0",
        "valga/fbns-react": "^0.1.8",
    }
}
@pvolyntsev
Copy link
Author

My suggestion: connection lost, need a reconnection logic

@valga valga closed this as completed in 67d9a15 Mar 2, 2020
valga added a commit that referenced this issue Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant