当我推送到gitlab存储库时,出现2个错误。找不到GET的路由,但是我删除了所有可能现在是任何方法的方法。我不知道这是什么,所以我寻求帮助
name method scheme host path
app_api_gitlab_pushcomments ANY ANY ANY /api/gitlab/push-comments
错误:
[2019-11-20 10:41:03] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: "No route found for "GET /api/gitlab/push-comments": Method Not Allowed (Allow: POST)" at /media/storage/www/vendor/symfony/http-kernel/EventListener/RouterListener.php line 143 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException(code: 0): No route found for \"GET /api/gitlab/push-comments\": Method Not Allowed (Allow: POST) at /media/storage/www/vendor/symfony/http-kernel/EventListener/RouterListener.php:143, Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException(code: 0): at /media/storage/vendor/symfony/routing/Matcher/Dumper/PhpMatcherTrait.php:42)"} []
[2019-11-20 10:41:03] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "logger" of class "App\Controller\Api\GitlabController"." at /media/storage/www/src/Controller/Api/GitlabController.php line 52 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedMethodException(code: 0): Attempted to call an undefined method named \"logger\" of class \"App\\Controller\\Api\\GitlabController\". at /media/storage/www/src/Controller/Api/GitlabController.php:52)"} []
在gitlab上:admin / hooks / 7 / edit
我遇到此错误:
{"error":{"code":500,"message":"Internal Server Error"}}