serverless: {"errorMessage":"invalid_request"} when running deploy
This is a Bug Report
Description
Following the getting started guide at https://github.com/serverless/platform/blob/master/docs/event-gateway/getting-started.md, running serverless deploy with v1.29.2 results in the error
{"errorMessage":"invalid_request"}.
If i rollback serverless cli to v1.28.0, the following error results instead
Failed to fetch the event types list due the error: API key not set..
For convenience, I’ve reproduced the serverless.yml here:
service: my-service
app: <your-app-name>
tenant: <your-tenant-name>
provider:
name: aws
runtime: nodejs8.10
functions:
main:
handler: handler.main
events:
- eventgateway:
type: sync
eventType: http.request
path: /
method: GET
custom:
eventTypes:
http.request:
plugins:
- "@serverless/serverless-event-gateway-plugin"
Additional Data
v1.28.0
Event Gateway Plugin
Error --------------------------------------------------
Failed to fetch the event types list due the error: API key not set.
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.11.3
Serverless Version: 1.28.0
v1.29.2
Error --------------------------------------------------
{"errorMessage":"invalid_request"}
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.11.3
Serverless Version: 1.29.2
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 18 (13 by maintainers)
Commits related to this issue
- fixes #5188 "Failed to fetch the event types list due the error: API key not set" error when event gateway plugin is used. — committed to johnlim/serverless by johnlim 6 years ago
- Merge pull request #5335 from johnlim/master Fixes #5188 "Failed to fetch the event types list due the error: API … — committed to serverless/serverless by pmuens 5 years ago
yes, login solve it for me on my OSX
but, i did it work only with variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY into a container docker with serverless 1.29.2, it work withou login
Hey all, we made some changes to our login infra, so login again will be required for some outdated users. However if after update -> login -> deploy you face this issue again, please let us know!