soundnode-app icon indicating copy to clipboard operation
soundnode-app copied to clipboard

Stuck at "Authentificating your Soundcloud account" when developing locally

Open mmdbareche opened this issue 10 years ago • 44 comments

mmdbareche avatar Jan 26 '16 03:01 mmdbareche

the problem is with universal-analytics

daxlab avatar Feb 28 '16 17:02 daxlab

@jakejarrett @weblancaster I made a patch for the universal-analytics problem, which you can apply with git am 0001-Fixed-GA.patch...

ghost avatar Mar 13 '16 08:03 ghost

Same issue, here is the stack trace:

[15916:0315/165907:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[15916:0315/165911:ERROR:nw_shell.cc(336)] Error: Cannot find module 'async'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:264:25)
    at Module.require (module.js:356:17)
    at require (module.js:375:17)
    at Object.<anonymous> (/tmp/.org.chromium.Chromium.QbAsbQ/node_modules/universal-analytics/lib/index.js:2:13)
    at Module._compile (module.js:451:26)
    at Object.Module._extensions..js (module.js:469:10)
    at Module.load (module.js:346:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:356:17)
[15916:0315/165911:INFO:CONSOLE(329)] "Uncaught Error: Cannot find module 'async'", source: module.js (329)
[15916:0315/165911:INFO:CONSOLE(13)] ""User is saved"", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/system/userConfig.js (13)
[15916:0315/165911:INFO:CONSOLE(16)] ""Download the React DevTools for a better development experience: https://fb.me/react-devtools"", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/dist/bundle.js (16)
[15916:0315/165913:ERROR:nw_shell.cc(336)] TypeError: Cannot read property 'visitor' of undefined
    at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/app.js:102:20
    at Object.e [as invoke] (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:37:96)
    at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:38:454
    at s (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:7:302)
    at Ob (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:38:433)
    at d (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:17:350)
    at Object.sc [as bootstrap] (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:18:153)
    at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/system/authentication.js:60:17
[15916:0315/165913:INFO:CONSOLE(102)] "Uncaught TypeError: Cannot read property 'visitor' of undefined", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/app.js (102)
[15947:0315/170020:WARNING:channel.cc(553)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)

rahilwazir avatar Mar 15 '16 12:03 rahilwazir

@rahil download the source, apply my patch and compile it... Op 15 mrt. 2016 13:04 schreef "Rahil" [email protected]:

Same issue, here is the stack trace:

[15916:0315/165907:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. ATTENTION: default value of option force_s3tc_enable overridden by environment. [15916:0315/165911:ERROR:nw_shell.cc(336)] Error: Cannot find module 'async' at Function.Module._resolveFilename (module.js:327:15) at Function.Module._load (module.js:264:25) at Module.require (module.js:356:17) at require (module.js:375:17) at Object. (/tmp/.org.chromium.Chromium.QbAsbQ/node_modules/universal-analytics/lib/index.js:2:13) at Module._compile (module.js:451:26) at Object.Module._extensions..js (module.js:469:10) at Module.load (module.js:346:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:356:17) [15916:0315/165911:INFO:CONSOLE(329)] "Uncaught Error: Cannot find module 'async'", source: module.js (329) [15916:0315/165911:INFO:CONSOLE(13)] ""User is saved"", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/system/userConfig.js (13) [15916:0315/165911:INFO:CONSOLE(16)] ""Download the React DevTools for a better development experience: https://fb.me/react-devtools"", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/dist/bundle.js (16) [15916:0315/165913:ERROR:nw_shell.cc(336)] TypeError: Cannot read property 'visitor' of undefined at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/app.js:102:20 at Object.e as invoke at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:38:454 at s (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:7:302) at Ob (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:38:433) at d (file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/vendor/angular.min.1.3.8.js:17:350) at Object.sc as bootstrap at file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/system/authentication.js:60:17 [15916:0315/165913:INFO:CONSOLE(102)] "Uncaught TypeError: Cannot read property 'visitor' of undefined", source: file:///tmp/.org.chromium.Chromium.QbAsbQ/public/js/app.js (102) [15947:0315/170020:WARNING:channel.cc(553)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub:

https://github.com/Soundnode/soundnode-app/issues/524#issuecomment-196790721

ghost avatar Mar 15 '16 14:03 ghost

@wb9688 Why don't you create PR to this repo?

rahilwazir avatar Mar 15 '16 14:03 rahilwazir

@rahil I wanted to do that, but I was on vacation and the firewall blocked SSH... Op 15 mrt. 2016 15:53 schreef "Rahil" [email protected]:

@wb9688 https://github.com/wb9688 Why don't you create PR to this repo?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub:

https://github.com/Soundnode/soundnode-app/issues/524#issuecomment-196854889

ghost avatar Mar 15 '16 15:03 ghost

Ok :smile:.But don't forget to merge your patch here later.

rahilwazir avatar Mar 15 '16 15:03 rahilwazir

@wb9688 I'm getting error applying patch on my Windows machine, worked fine on my Linux machine.

$ git am 0001-Fixed-GA.patch
Applying: Fixed GA
error: patch failed: app/public/js/app.js:98
error: app/public/js/app.js: patch does not apply
Patch failed at 0001 Fixed GA
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

rahilwazir avatar Mar 20 '16 09:03 rahilwazir

Todays release v0.6.3 resolved the issue for me.

Recydywa avatar Mar 26 '16 18:03 Recydywa

@Recydywa Not sure, updated to the latest release still having same issue as OP on Windows.

rahilwazir avatar Mar 26 '16 22:03 rahilwazir

@rahilwazir can you describe your workflow please and what account (facebook or google?) you are using.

weblancaster avatar Mar 26 '16 22:03 weblancaster

@weblancaster

  • I clone the latest master
  • grunt build (succeed)
  • Run win32 binary
  • Login through SoundCloud. (no SSO)
  • Stuck at authenticating screen

Windows 10 x64

rahilwazir avatar Mar 27 '16 08:03 rahilwazir

@weblancaster Latest release worked fine on Linux x64 without applying the patch above

rahilwazir avatar Mar 28 '16 11:03 rahilwazir

Damn! Sorry ignore my previous comment. Linux x64 also causing the same problem.

$ ./Soundnode 
[26057:0328/164057:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[26057:0328/164058:ERROR:nw_shell.cc(336)] Error: Cannot find module 'async'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:264:25)
    at Module.require (module.js:356:17)
    at require (module.js:375:17)
    at Object.<anonymous> (/tmp/.org.chromium.Chromium.lOT1fI/node_modules/universal-analytics/lib/index.js:2:13)
    at Module._compile (module.js:451:26)
    at Object.Module._extensions..js (module.js:469:10)
    at Module.load (module.js:346:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:356:17)
[26057:0328/164058:INFO:CONSOLE(329)] "Uncaught Error: Cannot find module 'async'", source: module.js (329)
[26057:0328/164058:INFO:CONSOLE(13)] ""User is saved"", source: file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/system/userConfig.js (13)
[26057:0328/164058:INFO:CONSOLE(16)] ""Download the React DevTools for a better development experience: https://fb.me/react-devtools"", source: file:///tmp/.org.chromium.Chromium.lOT1fI/dist/bundle.js (16)
[26057:0328/164100:ERROR:nw_shell.cc(336)] TypeError: Cannot read property 'visitor' of undefined
    at file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/app.js:102:20
    at Object.e [as invoke] (file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:37:96)
    at file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:38:454
    at s (file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:7:302)
    at Ob (file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:38:433)
    at d (file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:17:350)
    at Object.sc [as bootstrap] (file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/vendor/angular.min.1.3.8.js:18:153)
    at file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/system/authentication.js:60:17
[26057:0328/164100:INFO:CONSOLE(102)] "Uncaught TypeError: Cannot read property 'visitor' of undefined", source: file:///tmp/.org.chromium.Chromium.lOT1fI/public/js/app.js (102)
^C
rw@rw [linux64]# [26079:0328/164352:WARNING:x11_util.cc(1490)] X error received: serial 89205, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)

Nor the patch above is being applied now

rahilwazir avatar Mar 28 '16 11:03 rahilwazir

Arrgghh :sob: , the build from main website is working fine on Linux x64.

rahilwazir avatar Mar 28 '16 12:03 rahilwazir

Ah ok can you tell me the node version and the npm version you are running please @rahilwazir

weblancaster avatar Mar 28 '16 17:03 weblancaster

@weblancaster

node: v5.9.1 npm: v3.7.3

rahilwazir avatar Mar 29 '16 06:03 rahilwazir

Ah have you tried downgrade to npm < 3 @rahilwazir ?

weblancaster avatar Mar 29 '16 15:03 weblancaster

@rahilwazir Could you try using npm with nvm if you aren't already? That should make it easy to test if its npm breaking or not

jakejarrett avatar Mar 29 '16 20:03 jakejarrett

I'm positive that the issue is because of the use of NPM 3 so downgrading will be a goo try.

weblancaster avatar Mar 29 '16 20:03 weblancaster