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

WebSocket error from ask-sdk-local-debug with EU region #716

Open
javierAlo opened this issue Jun 1, 2022 · 4 comments
Open

WebSocket error from ask-sdk-local-debug with EU region #716

javierAlo opened this issue Jun 1, 2022 · 4 comments
Labels

Comments

@javierAlo
Copy link

I'm submitting a...


[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Expected Behavior

Configuring EU as region in launch.json and on start debugging, a debug session should start (for one hour period).

Current Behavior

The debug session only starts if region in launch.json is NA. With EU as region an error occurs.
Region chosen: EU
lambda/node_modules/ask-sdk-local-debug/dist/builder/WebSocketClientConfigBuilder.js:32
WebSocket error: Unexpected server response: 500
lambda/node_modules/ask-sdk-local-debug/dist/client/LocalDebugClient.js:58
WebSocket is closed: CloseEvent {target: WebSocket, type: 'close', wasClean: false, reason: '', code: 1006}

Possible Solution

Steps to Reproduce (for bugs)

Download an Alexa Skill from Amazon Developer Console to VSCode with ASK Toolkit.
Install ask-sdk-model@^1.29.0 and ask-sdk-local-debug from lambda project directory
Create launch.json and setup region as EU.

"version": "0.2.0",
"configurations": [
{
"name": "Debug Alexa Skill (Node.js)",
"type": "pwa-node",
"request": "launch",
"program": "${command:ask.debugAdapterPath}",
"args": [
"--accessToken",
"${command:ask.accessToken}",
"--skillId",
"${command:ask.skillIdFromWorkspace}",
"--handlerName",
"handler",
"--skillEntryFile",
"${workspaceFolder}/lambda/index.js",
"--region",
"EU"
],
"cwd": "${workspaceFolder}/lambda"
}
]
}

'Start Debugging' from VSCode Run menu.

Context

I'm trying to debug an Alexa skill from VSCode.

Your Environment

  • ASK SDK for Node.js used: v2.11.0
  • Operating System and version: macOS Big Sur v11.6.1

Node.js and NPM Info

  • Node.js version used for development: v17.5.0
  • NPM version used for development: 8.11.0
@doiron doiron added the bug label Jun 1, 2022
@javierAlo
Copy link
Author

javierAlo commented Jun 7, 2022

It seems that this problem has been solved.

@Betatester777
Copy link

In my case debugging DOESN'T work in EU and NA regions.

@Betatester777
Copy link

#718

@ankitrex31
Copy link

I am facing the same issue, Does anyone know how to fix this..?
i am using the EU region.

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

No branches or pull requests

4 participants