xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
575 stars 129 forks source link

MacAir Undefined array key "TelegramApiServer\EventObservers\EventHandler" in EventHandler.php:238 #135

Closed dg-jj closed 1 year ago

dg-jj commented 1 year ago
{
    "session": "session",
    "exception": {
        "exception": "danog\\MadelineProto\\Exception",
        "message": "Undefined array key \"TelegramApiServer\\EventObservers\\EventHandler\"",
        "file": "/Users/my/www/3T/TelegramApiServer/vendor/danog/madelineproto/src/EventHandler.php",
        "line": 238,
        "code": 2,
        "backtrace": [
            {
                "file": "/Users/my/www/3T/TelegramApiServer/vendor/danog/madelineproto/src/EventHandler.php",
                "line": 238,
                "function": "exceptionErrorHandler",
                "class": "danog\\MadelineProto\\Exception",
                "type": "::",
                "args": [
                    2,
                    "Undefined array key \"TelegramApiServer\\EventObservers\\EventHandler\"",
                    "/Users/my/www/3T/TelegramApiServer/vendor/danog/madelineproto/src/EventHandler.php",
                    238
                ]
            },
            {
                "file": "/Users/my/www/3T/TelegramApiServer/vendor/danog/madelineproto/src/Wrappers/Events.php",
                "line": 88,
                "function": "internalStart",
                "class": "danog\\MadelineProto\\EventHandler",
                "type": "->",
                "args": [
                    {},
                    [],
                    []
                ]
            },
            {
                "file": "/Users/my/www/3T/TelegramApiServer/src/EventObservers/EventObserver.php",
                "line": 61,
                "function": "setEventHandler",
                "class": "danog\\MadelineProto\\MTProto",
                "type": "->",
                "args": [
                    "TelegramApiServer\\EventObservers\\EventHandler"
                ]
            }
        ],
        "previous exception": null
    }
}
dg-jj commented 1 year ago

ws://127.0.0.1:9503/events Monitor event error

xtrime-ru commented 1 year ago

Thanks for report. Fixed in latest master: https://github.com/xtrime-ru/TelegramApiServer/commit/83b1f8a9a4d699bbe45ff6ce7c3790494ec86c62

Please upgrade.