Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Warning: Fabiang\Xmpp\Stream\XMLStream::clearDocument(): Invalid State Error #73

Open
gpstash opened this issue Mar 18, 2018 · 0 comments

Comments

@gpstash
Copy link

gpstash commented Mar 18, 2018

Hi,

I got the code running and got the message that I send via this XMPP client.
but I got warning like this:

PHP Warning:  Fabiang\Xmpp\Stream\XMLStream::clearDocument(): Invalid State Error in /opt/atlas/vendor/fabiang/xmpp/src/Stream/XMLStream.php on line 183

PHP Stack trace:
PHP   1. {main}() /opt/xmpp/vendor/amphp/parallel/lib/Context/Internal/process-runner.php:0
PHP   2. Amp\Loop::run() /opt/xmpp/vendor/amphp/parallel/lib/Context/Internal/process-runner.php:85
PHP   3. Amp\Loop\Driver->run() /opt/xmpp/vendor/amphp/amp/lib/Loop.php:76
PHP   4. Amp\Loop\Driver->tick() /opt/xmpp/vendor/amphp/amp/lib/Loop/Driver.php:70
PHP   5. Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}() /opt/xmpp/vendor/amphp/amp/lib/Loop/Driver.php:112
PHP   6. Amp\Deferred->resolve() /opt/xmpp/vendor/amphp/byte-stream/lib/ResourceInputStream.php:98
PHP   7. {anonymous-class:/opt/xmpp/vendor/amphp/amp/lib/Deferred.php:18-23}->resolve() /opt/xmpp/vendor/amphp/amp/lib/Deferred.php:41
PHP   8. Amp\Coroutine->Amp\{closure}() /opt/xmpp/vendor/amphp/amp/lib/Internal/Placeholder.php:127
PHP   9. Amp\Coroutine->resolve() /opt/xmpp/vendor/amphp/amp/lib/Coroutine.php:79
PHP  10. Amp\Coroutine->Amp\{closure}() /opt/xmpp/vendor/amphp/amp/lib/Internal/Placeholder.php:127
PHP  11. Generator->send() /opt/xmpp/vendor/amphp/amp/lib/Coroutine.php:74
PHP  12. Amp\Parallel\Worker\TaskRunner->execute() /opt/xmpp/vendor/amphp/amp/lib/Coroutine.php:74
PHP  13. Amp\call() /opt/xmpp/vendor/amphp/parallel/lib/Worker/TaskRunner.php:41
PHP  14. lib\ejabberd\queue\Task->run() /opt/xmpp/vendor/amphp/amp/lib/functions.php:55
PHP  15. lib\ejabberd\Client->sendMessage() /opt/xmpp/vendor/ejabberd/src/lib/ejabberd/queue/Task.php:46
PHP  16. lib\ejabberd\Client->connect() /opt/xmpp/vendor/ejabberd/src/lib/ejabberd/Client.php:178
PHP  17. lib\ejabberd\saas\Client->connect() /opt/xmpp/vendor/ejabberd/src/lib/ejabberd/Client.php:145
PHP  18. PluginXmppClient\Client->connect() /opt/xmpp/vendor/ejabberd/src/lib/ejabberd/saas/Client.php:116
PHP  19. Fabiang\Xmpp\Client->connect() /opt/xmpp/vendor/ejabberd-plugins/plugin-xmpp-client/src/Client.php:57
PHP  20. Fabiang\Xmpp\Connection\Socket->connect() /opt/xmpp/vendor/fabiang/xmpp/src/Client.php:126
PHP  21. Fabiang\Xmpp\Connection\Socket->send() /opt/xmpp/vendor/fabiang/xmpp/src/Connection/Socket.php:183
PHP  22. Fabiang\Xmpp\Stream\XMLStream->parse() /opt/xmpp/vendor/fabiang/xmpp/src/Connection/Socket.php:162
PHP  23. Fabiang\Xmpp\Stream\XMLStream->clearDocument() /opt/xmpp/vendor/fabiang/xmpp/src/Stream/XMLStream.php:156

Can anyone help me to remove this warning?

thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant