dev-server icon indicating copy to clipboard operation
dev-server copied to clipboard

Error Call to undefined method Closure::handle()

Open Suganya209 opened this issue 2 years ago • 0 comments

Serverless.yml configuration:

functions: test: handler: test.php events: - httpApi: method: POST path: /test

I have started the server using the command, vendor/bin/bref-dev-server

image

I have called the endpoint by this URL, http://0.0.0.0:8000/test

I'm getting this error,

Error: Call to undefined method Closure::handle() in file /brefproject/vendor/bref/dev-server/src/Handler.php on line 47 Stack trace:

  1. Error->() /brefproject/vendor/bref/dev-server/src/Handler.php:47
  2. Bref\DevServer\Handler->handleRequest() /brefproject/vendor/bref/dev-server/src/server-handler.php:11

Please tell me how to resolve it.

Suganya209 avatar Sep 19 '23 08:09 Suganya209