# AWS API Gateway endpoint problem

**URL:** <https://forum.serverless.com/t/aws-api-gateway-endpoint-problem/7477>\
**Category:** Serverless Framework\
**Created:** [February 22, 2019, 5:51pm UTC](https://forum.serverless.com/t/aws-api-gateway-endpoint-problem/7477 "2019-02-22T17:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedromvgomes](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/pedromvgomes/32/3073_2.png) [@pedromvgomes](https://forum.serverless.com/u/pedromvgomes)\
**Post date:** [February 22, 2019, 5:51pm UTC](https://forum.serverless.com/t/aws-api-gateway-endpoint-problem/7477/1 "2019-02-22T17:51:24Z")

</div>

I’ve deployed my first serverless app with no problems. Trying to execute a simple hello world from AWS lambda console works ok.

Problem is when I try to call it using the API gateway endpoint, I’m getting an error

Cannot GET /dev/hello  
Trying not to use the stage i get Cannot GET /hello

My serverless.yml has the following  
…  
functions:  
appServerInfo:  
handler: src/app/serverInfo.handler  
events:  
- http: GET hello

If I change the file to  
…  
functions:  
appServerInfo:  
handler: src/app/serverInfo.handler  
events:  
- http: ANY /  
- http: ‘ANY {proxy+}’

it works, so I think there’s something wrong with my events configurations
