Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerlessError: An error occurred: WebsocketsDeploymentStage #7016

Closed
asafvaron90 opened this issue Nov 26, 2019 · 4 comments
Closed

ServerlessError: An error occurred: WebsocketsDeploymentStage #7016

asafvaron90 opened this issue Nov 26, 2019 · 4 comments

Comments

@asafvaron90
Copy link

Hi, I'm trying to deploy serverless with websockets and receiving the following error

ServerlessError: An error occurred: WebsocketsDeploymentStage - The following context variables are not supported: [$context.status] (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 0722a2e7-7a0b-41d1-8cbf-14ea8767a4f3).

Thanks for the help

@pleizi
Copy link

pleizi commented Nov 27, 2019

Same here!

An error occurred: WebsocketsDeploymentStage - The following context variables are not supported: [$context.authorizer, $context.error] (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 8b3b9c94-1f2d-49f7-838b-2f82ab746bcd).

Thanks for the help!!!!

@Filip-Duc
Copy link

Same here

@silberistgold
Copy link

Same here. I am using a very simple setup. Config looks something like this:

functions:
  connectionHandler:
    handler: handler.connectionHandler
    events:
      - websocket:
          route: $connect
      - websocket:
          route: $disconnect

  defaultHandler:
    handler: handler.defaultHandler
    events:
      - websocket: $default

@exoego
Copy link
Contributor

exoego commented Nov 27, 2019

I think this was resolved in #7014
Stay tuned for upcoming release.

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

No branches or pull requests

6 participants