Unexpected error in logs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakub Grufik
    Senior Member
    • Aug 2022
    • 361

    Unexpected error in logs

    Hello guys,

    today I noticed that my error logs for yesterday and today are getting suspiciously big (27MB instead of 30kB).

    I checked the logs and I can see that there is only one error again and again (approx. 4 times every 10 sec) saying:
    Code:
    [2023-07-20 06:23:53] ERROR: 405 Method Not Allowed Type: Slim\Exception\HttpMethodNotAllowedException Code: 405 Message: Method not allowed. Must be one of: GET, POST, PUT, DELETE File: /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php Line: 94 Trace: #0 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(58): Slim\Middleware\RoutingMiddleware->performRouting(Object(Slim\Psr7\Request)) #1 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\RoutingMiddleware->process(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner)) #2 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #3 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@anonymous)) #4 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #5 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #6 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/vendor/slim/slim/Slim/App.php(199): Slim\App->handle(Object(Slim\Psr7\Request)) #7 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/Core/Api/Starter.php(62): Slim\App->run() #8 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() #9 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/Core/Application/RunnerRunner.php(87): Espo\Core\ApplicationRunners\Api->run() #10 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run('Espo\\Core\\Appli...', NULL) #11 /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/public/api/v1/index.php(37): Espo\Core\Application->run('Espo\\Core\\Appli...') #12 {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor. [] []
    I have no idea what could be causing this and how to debug it.
    Do you by any chance have any idea on how to solve this error?

    Thanks a lot for the help.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    #2
    additionaly check your server log, maybe there is some trace.

    Comment

    • rabii
      Active Community Member
      • Jun 2016
      • 1250

      #3
      Hey

      It Looks like error you are encountering is a "405 Method Not Allowed" error, which typically indicates that the request method used (maybe in a controller backend or frontend) is not allowed for the requested URL. The error message suggests that the allowed request methods are limited to "GET," "POST," "PUT," and "DELETE," but the actual request method used in this instance is not one of these allowed methods.

      You need to dig to see which method is causing this issue.
      Rabii
      Web Dev

      Comment

      • Jakub Grufik
        Senior Member
        • Aug 2022
        • 361

        #4
        I am trying to find out what is happening but so far no success. The only thing I have set up is creating leads via make.com, but some leads are being created successfuly via make.com so I assume that they are using correct method "POST".

        I have no idea what could be causing this error. Will try to continue investigation.

        Comment


        • lazovic
          lazovic commented
          Editing a comment
          Please try to enable the debug mode for EspoCRM logs and send the lead via the Make.com service. Maybe the picture will clear up a bit.
      Working...