chriskonnertz/DeepLy

crash on empty content

skorotkiewicz opened this issue · 0 comments

PHP Fatal error:  Uncaught exception 'ChrisKonnertz\DeepLy\ResponseBag\BagException' with message 'DeepLy API call resulted in a malformed result - beams array is empty in translation 0' in /home/developing/hn_bld/deepl/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/ResponseBag/TranslationBag.php:58
Stack trace:
#0 /home/developing/hn_bld/deepl/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/ResponseBag/AbstractBag.php(29): ChrisKonnertz\DeepLy\ResponseBag\TranslationBag->verifyResponseContent(Object(stdClass))
#1 /home/developing/hn_bld/deepl/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/DeepLy.php(279): ChrisKonnertz\DeepLy\ResponseBag\AbstractBag->__construct(Object(stdClass))
#2 /home/developing/hn_bld/deepl/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/DeepLy.php(299): ChrisKonnertz\DeepLy\DeepLy->requestTranslation('Kotlin/Native v...', 'PL', 'EN', false)
#3 /home/developing/hn_bld/bot.php(150): ChrisKonnertz\DeepLy\DeepLy->translate('Kotlin/Native v...', 'PL', 'EN')
#4 /home/developing/hn_bld/bo in /home/developing/hn_bld/deepl/vendor/chriskonnertz/deeply/src/ChrisKonnertz/DeepLy/ResponseBag/TranslationBag.php on line 58