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

Sign In Fails to Launch Web Browser / Only shows blank screen #124

Closed
cod3monk3y opened this issue May 7, 2021 · 8 comments · Fixed by #127
Closed

Sign In Fails to Launch Web Browser / Only shows blank screen #124

cod3monk3y opened this issue May 7, 2021 · 8 comments · Fixed by #127
Assignees
Labels
bug Something isn't working

Comments

@cod3monk3y
Copy link

cod3monk3y commented May 7, 2021

Describe the bug

In VS Code 1.56.0 and ASK Toolkit 2.5.0, clicking SKILLS MANAGEMENT > Sign In then clicking the Sign In button shows a blank window in VS Code, and does not launch a sign in page in browser (Firefox default). Downgrading to VS Code 1.53.x fixes this issue.

To Reproduce

  1. Set Firefox as default browser (may/may not be necessary, but that's my setup)
  2. Install VS Code 1.56.0
  3. Install ASK Toolkit 2.5.0
  4. Click Sign In under SKILLS MANAGEMENT of the ALEXA SKILLS TOOLKIT extension
  5. In the Sign In tab that appears, click the Sign in button

Extension Logs

[info - 2021-05-07 19:48:00.933Z] Activating extension 
[error - 2021-05-07 19:54:51.168Z] Method not implemented.. 

[error - 2021-05-07 19:55:07.492Z] Method not implemented.. 

[error - 2021-05-07 19:57:18.342Z] Method not implemented.. 

[info - 2021-05-07 19:58:51.914Z] log level changed to verbose 
[debug - 2021-05-07 19:59:09.383Z] Calling method: ask.login 
[debug - 2021-05-07 19:59:09.383Z] Calling method: initialLogin.getHtmlForView 
[debug - 2021-05-07 19:59:09.383Z] Calling method: renderView, args:  [{"name":"initialLogin","js":true}]
[debug - 2021-05-07 19:59:23.728Z] Calling method: initialLogin.getHtmlForView 
[debug - 2021-05-07 19:59:36.889Z] Calling method: initialLogin.getHtmlForView 
[debug - 2021-05-07 19:59:37.464Z] Calling method: initialLogin.getHtmlForView 

Expected behavior

Tab should appear in Firefox for logging in to Amazon account.

Actual behavior

No tab appears in Firefox. Sign-in screen remains blank. No way to sign in to the extension.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows_NT x64 10.0.19042
  • Visual Studio Code Version: 1.56.0
  • Alexa Skills Toolkit Version: 2.5.0
  • Git Version: git version 2.31.1.windows.1

Additional context

Default browser: Firefox 78.10.1esr (64-bit)

If you downgrade VS Code to 1.53.x, sign in will launch the browser tab as expected. Then upgrading back to 1.56.x again will re-introduce the problem and it will not be possible to sign in. I did not investigate which version inbetween stopped working correctly.

@cod3monk3y cod3monk3y added the bug Something isn't working label May 7, 2021
@cod3monk3y
Copy link
Author

VS Code 1.55.2 works as expected. Sign-In page correctly launches in browser.

OUTPUT

[info - 2021-05-07 20:39:48.160Z] Activating extension 
[debug - 2021-05-07 20:39:48.161Z] No profiles found in the extension. 
[debug - 2021-05-07 20:39:48.161Z] Registering commands in the extension 
[debug - 2021-05-07 20:39:48.162Z] Registering views in the extension 
[debug - 2021-05-07 20:39:48.276Z] Calling method: ask.login 
[debug - 2021-05-07 20:39:48.277Z] Calling method: initialLogin.getHtmlForView 
[debug - 2021-05-07 20:39:48.277Z] Calling method: renderView, args:  [{"name":"initialLogin","js":true}]
[debug - 2021-05-07 20:39:48.279Z] Registering event handlers in the extension 
[debug - 2021-05-07 20:39:48.279Z] Registering statusbar in the extension 
[verbose - 2021-05-07 20:39:48.279Z] Updating profile icon in the extension 
[debug - 2021-05-07 20:39:48.280Z] Registering treeviews in the extension 
[debug - 2021-05-07 20:39:48.282Z] Checking if extension version is latest 
[debug - 2021-05-07 20:39:48.343Z] Calling method: c.getChildren 
[debug - 2021-05-07 20:39:48.343Z] Calling method: l.getChildren 
[verbose - 2021-05-07 20:39:48.343Z] Calling method: l.addRootResources 
[debug - 2021-05-07 20:39:48.344Z] Calling method: l.getTreeItem 
[debug - 2021-05-07 20:39:48.344Z] Calling method: l.getTreeItem 
[debug - 2021-05-07 20:39:48.344Z] Calling method: c.getTreeItem 
[debug - 2021-05-07 20:39:54.981Z] Calling method: initialLogin.onReceiveMessageListener, args: [null]
[debug - 2021-05-07 20:39:54.981Z] Calling method: initialLogin.doAuthenticate 
[debug - 2021-05-07 20:39:54.981Z] Calling method: authenticate, args:  ["default"]
[debug - 2021-05-07 20:39:54.981Z] Calling method: renderView, args:  [{"name":"initiateAuthFlow","js":false}]

@cod3monk3y
Copy link
Author

Attempted installing 1.56.0 "System" from the direct link, rather than upgrading (https://code.visualstudio.com/updates/v1_56). Problem persists. Still unable to sign in with 1.56.0.

@carlos-algms
Copy link

I just tried with VSCode v1.56.1 and I also receive the blank page.

@nikhilym
Copy link
Contributor

Hey @cod3monk3y , @carlos-algms sorry for the late response. Thanks for getting this to our notice. You are right, the sign in button seems to be broken on the latest vscode version v1.56.x. I will check and raise a fix for this soon.

@rimolive
Copy link

This is the error that shows in VSCode Developer console when click on Sign in button:

log.ts:296   ERR Unexpected token u in JSON at position 0: SyntaxError: Unexpected token u in JSON at position 0
	at JSON.parse (<anonymous>)
	at y (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:79:5345)
	at s.$onMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:56403)
	at l._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:91:12836)
	at l._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:91:12520)
	at l._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:91:11187)
	at l._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:91:10172)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:91:8074
	at fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1836)
	at S.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:15497)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:106:29764
	at fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1836)
	at S.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:15497)
	at t._receiveMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:20755)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:17641
	at fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1836)
	at acceptChunk (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:12862)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:12210
	at Socket.v (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:106:13195)
	at Socket.emit (events.js:315:20)
	at addChunk (internal/streams/readable.js:309:12)
	at readableAddChunk (internal/streams/readable.js:284:9)
	at Socket.Readable.push (internal/streams/readable.js:223:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
host.js:9 Uncaught TypeError: Cannot read property '1' of null
    at host.js:9
(anonymous) @ host.js:9

The issue still persists.

@nikhilym
Copy link
Contributor

Hey @rimolive. Thanks for the error log. I saw you approved #127 . Do you see this issue happening even after the fix?

@rimolive
Copy link

rimolive commented May 25, 2021

No, the issue does not happen with the fix in #127. Sorry about that, but when I posted the error in the log I didn't see the PR was already there. That's why I approved the PR.

@carlos-algms
Copy link

I'm seeing the blank screen when using the simulator for testing.
Might be connected to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants