Open wangliguokaka opened 2 years ago
Hi, I'm also facing exactly the same issue with my API. I debugged and found, that when using NewV2, it puts a test/
before the actual requested path, which causes the 404.
e.g.
Expected req path: req.RequestContext.HTTP.Path
= /api/v1/cats
Actual req path: req.RequestContext.HTTP.Path
= /test/api/v1/cats
EDIT: With SAM local, the req path is formed correctly and all the API endpoints are reached fine. But after deployment to AWS API Gateway it doesn't seem to work. (I'm using AWS::Serverless::HttpApi
)
I have same issue with HTTP (v2) gateway but adding test did not work @rajrohanyadav
@wangliguokaka did you find a solution you can share?
code: func main() {
}
error :