Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Call to undefined method Closure::handle() #10

Open
Suganya209 opened this issue Sep 19, 2023 · 0 comments
Open

Error Call to undefined method Closure::handle() #10

Suganya209 opened this issue Sep 19, 2023 · 0 comments

Comments

@Suganya209
Copy link

Suganya209 commented Sep 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant