Endpoint not created #1810

Closed
zachheine opened this Issue Aug 10, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@zachheine

Deploying:

functions:
  createUsers:
    handler: handler.createUsers
    events:
      - http:
        path: users/create
        method: get

does not result in the creation of an endpoint.

However, when I use:

functions:
  createUsers:
    handler: handler.createUsers
    events:
      - http: GET users/create

an endpoint is created.

@pmuens

This comment has been minimized.

Show comment
Hide comment
@pmuens

pmuens Aug 10, 2016

Member

Hey @zachheine
Thanks for reporting!

It's a problem with indentation. You need to add 2 more spaces after the -http like this:

functions:
  createUsers:
    handler: handler.createUsers
    events:
      - http:
          path: users/create
          method: get

That should do the trick! Let me know if it solves the problem or you're facing other issues!

Member

pmuens commented Aug 10, 2016

Hey @zachheine
Thanks for reporting!

It's a problem with indentation. You need to add 2 more spaces after the -http like this:

functions:
  createUsers:
    handler: handler.createUsers
    events:
      - http:
          path: users/create
          method: get

That should do the trick! Let me know if it solves the problem or you're facing other issues!

@zachheine

This comment has been minimized.

Show comment
Hide comment
@zachheine

zachheine Aug 10, 2016

Thanks! Sorry for the trouble...

Thanks! Sorry for the trouble...

@zachheine zachheine closed this Aug 10, 2016

@pmuens

This comment has been minimized.

Show comment
Hide comment
@pmuens

pmuens Aug 10, 2016

Member

No problem! YAML is sometimes a little bit tricky (stumbled upon the exact same problem the other day).

Feel free to open other issues if you face problems. Happy to help.

Member

pmuens commented Aug 10, 2016

No problem! YAML is sometimes a little bit tricky (stumbled upon the exact same problem the other day).

Feel free to open other issues if you face problems. Happy to help.

ramhiser added a commit to ramhiser/serverless-cloud-vision that referenced this issue Aug 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment