Room-11 / Jeeves

Chatbot for Stack Overflow
MIT License
42 stars 19 forks source link

All I want for Christmas is a working comic plugin #263

Closed PeeHaa closed 6 years ago

PeeHaa commented 6 years ago

https://github.com/Room-11/Jeeves/tree/comic-upload

Add the service key to the config:

phpcomic: key: sent by mail

It breaks on the yield here: https://github.com/Room-11/Jeeves/blob/comic-upload/src/Plugins/PHPComic.php#L84

Something went wrong while processing command message #40504184 (event #82146160): Amp\Artax\SocketException: Connection to server severed before the request write could complete. in D:\Web\Jeeves\vendor\amphp\artax\lib\BufferWriter.php:41 Stack trace:

0 D:\Web\Jeeves\vendor\amphp\artax\lib\BufferWriter.php(86): Amp\Artax\BufferWriter->doWrite()

1 [internal function]: Amp\Artax\BufferWriter->Amp\Artax{closure}('000000000c83516...', Resource id #426, NULL)

2 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(265): uopz_call_user_func(Object(Closure), '000000000c83516...', Resource id #426, NULL)

3 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(257): Amp\NativeReactor->doIoCallback('000000000c83516...', Object(stdClass), Resource id #426)

4 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(214): Amp\NativeReactor->selectActionableStreams(0.0258)

5 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(71): Amp\NativeReactor->doTick(false)

6 D:\Web\Jeeves\vendor\amphp\amp\lib\functions.php(46): Amp\NativeReactor->run(NULL)

7 D:\Web\Jeeves\src\launcher.php(261): Amp\run()

8 D:\Web\Jeeves\bin\jeeves(113): require('D:\Web\Jeeves\s...')

9 {main}

An exception was not handled:

LogicException: Promise already resolved in D:\Web\Jeeves\vendor\amphp\amp\lib\Placeholder.php:70 Stack trace:

0 D:\Web\Jeeves\vendor\amphp\amp\lib\PublicPromisor.php(63): Amp\Deferred->resolve(Object(LogicException), NULL)

1 D:\Web\Jeeves\vendor\amphp\amp\lib\functions.php(836): Amp\Deferred->fail(Object(LogicException))

2 [internal function]: Amp{closure}('000000000c83515...', NULL)

3 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(100): uopz_call_user_func(Object(Closure), '000000000c83515...', NULL)

4 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(172): Amp\NativeReactor->tryImmediate(Object(stdClass))

5 D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php(71): Amp\NativeReactor->doTick(false)

6 D:\Web\Jeeves\vendor\amphp\amp\lib\functions.php(46): Amp\NativeReactor->run(NULL)

7 D:\Web\Jeeves\src\launcher.php(261): Amp\run()

8 D:\Web\Jeeves\bin\jeeves(113): require('D:\Web\Jeeves\s...')

9 {main}