Sample-web-app npm run start issue

Description
Hello. I’m having an issue getting you sample-web-app up and running (cloned from here ). When running npm run start I get these errors.

Error

npm run start
websdk-cdn@1.7.2 start C:\Users\Operator\Desktop\sample-app-web\CDN
concurrently “http-server -a 0.0.0.0 -p 9999 -c-1 -o index.html”
events.js:174
throw er; // Unhandled ‘error’ event
^
Error: listen EACCES: permission denied 0.0.0.0:9999
at Server.setupListenHandle [as _listen2] (net.js:1260:19)
at listenInCluster (net.js:1325:12)
at doListen (net.js:1458:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
Emitted ‘error’ event at:
at emitErrorNT (net.js:1304:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
[… lines matching original stack trace …]
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) http-server -a 0.0.0.0 -p 9999 -c-1 -o index.html exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-cdn@1.7.2 start: concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -o index.html"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-cdn@1.7.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Operator\AppData\Roaming\npm-cache_logs\2020-03-10T10_58_37_514Z-debug.log

Steps Taken

  • Cloned repo
  • Ran npm install
  • Added SDK key and secret to index.js (it does ask for an API key, but assuming these are the same thing)
  • Ran npm

Which version?
Using version 1.7.2 of the sample web app.
Windows 10 Pro
VS code
Node - v10.15.1
NPM - 6.4.1

I’ve had a read through some of the other posts and see people are having similar issues. I tried to use the fixes suggested but had no luck. Any help would be greatly apprieiated!

Many thanks

Hey @tom.woodley, thanks for posting and using Zoom!

Can you try just running $ http-server in terminal instead of $ npm run start?

Thanks,
Tommy

No problem thanks for getting back to me.

So I ran npm run https and got a similar error (log below). Anything else I can try?

Many thanks

Tom

npm run https

> websdk-cdn@1.7.2 https C:\Users\Operator\Desktop\sample-app-web\CDN
> concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"


[0] events.js:174
[0]       throw er; // Unhandled 'error' event
[0]       ^
[0] 
[0] Error: listen EACCES: permission denied 0.0.0.0:9999
[0]     at Server.setupListenHandle [as _listen2] (net.js:1260:19)        
[0]     at listenInCluster (net.js:1325:12)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
[0]     at startup (internal/bootstrap/node.js:283:19)
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[0] Emitted 'error' event at:
[0]     at emitErrorNT (net.js:1304:8)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     [... lines matching original stack trace ...]
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[0] http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-cdn@1.7.2 https: `concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-cdn@1.7.2 https script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Operator\AppData\Roaming\npm-cache\_logs\2020-03-10T17_53_00_671Z-debug.log
PS C:\Users\Operator\Desktop\sample-app-web\CDN> npm run https

> websdk-cdn@1.7.2 https C:\Users\Operator\Desktop\sample-app-web\CDN
> concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"

[0] events.js:174
[0]       throw er; // Unhandled 'error' event
[0]       ^
[0]
[0] Error: listen EACCES: permission denied 0.0.0.0:9999
[0]     at Server.setupListenHandle [as _listen2] (net.js:1260:19)
[0]     at listenInCluster (net.js:1325:12)
PS C:\Users\Operator\Desktop\sample-app-web\CDN> npm run https

> websdk-cdn@1.7.2 https C:\Users\Operator\Desktop\sample-app-web\CDN
> concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"

[0] events.js:174
[0]       throw er; // Unhandled 'error' event
[0]       ^
[0]
[0] Error: listen EACCES: permission denied 0.0.0.0:9999
[0]     at Server.setupListenHandle [as _listen2] (net.js:1260:19)        
[0]     at listenInCluster (net.js:1325:12)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
[0]     at startup (internal/bootstrap/node.js:283:19)
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[0] Emitted 'error' event at:
[0]     at emitErrorNT (net.js:1304:8)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     [... lines matching original stack trace ...]
[0] http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-cdn@1.7.2 https: `concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"`
PS C:\Users\Operator\Desktop\sample-app-web\CDN> npm run https      

> websdk-cdn@1.7.2 https C:\Users\Operator\Desktop\sample-app-web\CDN
> concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"

[0] events.js:174
[0]       throw er; // Unhandled 'error' event
[0]       ^
[0]
[0] Error: listen EACCES: permission denied 0.0.0.0:9999
[0]     at Server.setupListenHandle [as _listen2] (net.js:1260:19)        
[0]     at listenInCluster (net.js:1325:12)
[0]     at doListen (net.js:1458:7)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
[0]     at startup (internal/bootstrap/node.js:283:19)
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[0] Emitted 'error' event at:
[0]     at emitErrorNT (net.js:1304:8)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     [... lines matching original stack trace ...]
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[0] http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-cdn@1.7.2 https: `concurrently "http-server -a 0.0.0.0 -p 9999 -c-1 -S -C localhost.crt -K localhost.key -o https://localhost:9999/index.html"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-cdn@1.7.2 https script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Operator\AppData\Roaming\npm-cache\_logs\2020-03-10T17_55_43_241Z-debug.log

Hey @tom.woodley,

Did you try running http-server in terminal?

Thanks,
Tommy

I think so…

Sorry if I’m missing something obvious here.

So, I run http-server from my terminal and get this

I’ve checked my package.json file and http-server is listed as a dependency.
To double check it’s installed I’ve run npm http-server -v and get 6.4.1.

Is that what you meant?

Hey @tom.woodley,

Can you schedule a meeting with me here so I can better assist.

Thanks,
Tommy

Hi,

Im having the same issue here. Can someone please let me know how this being solved

Hey I had a call with Tommy about this. The issue I was having is that I didn’t have http-server installed globally.

Hope that helps!

1 Like

Hey @tharakaravishan,

Yes, please install http-server globally, npm install http-server -g

Thanks,
Tommy

Hey @tommy,

i had also faced similar issue and above solution helps me out to run sample app, but app is running on port:8080 and not able to connect or join meeting.

It on show input data in url, for more detail you can read below thread.

Thanks,
Salman.

Hi @salman.hubilo

Try to upgrade to version 1.7.5 and deactivate then reactive your JWT app to see if you’re able to join meetings.

Hi @Michael_Purnell,

You mean to say to upgrade version of zoom sdk to 1.7.5

Thanks,
Salman.

@salman.hubilo Yes please update to version 1.7.5. Let us know if this helps

Hi @Michael_Purnell,

I have tried updating zoom sdk version but still facing same issue, below i had attached console screen shot.

Thanks,
Salman.

Hey @salman.hubilo,

Replied to you in your thread:

Thanks,
Tommy

npm install http-server -g
or sudo npm install http-server -g

hello its running but im getting no response the form attempts to send a post request.

Hey @Evanatzend,

Can you clarify what your issue is? Please create a new topic with all the details.

Thanks,
Tommy