Skip to content

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

@Suganya209

Description

@Suganya209

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions