Error: isAdminAuthorized is not defined
See original GitHub issueMuaz, today I decided to update the project. The server has started, but it is impossible to enter the administration panel. What could be the reason?
Installation Guide https://github.com/muaz-khan/RTCMultiConnection/blob/master/docs/installation-guide.md#install-using-npm-or-bower
sudo apt-get update
sudo apt-get upgrade
wget https://github.com/muaz-khan/RTCMultiConnection/archive/master.zip
unzip master.zip
cd RTCMultiConnection-master
npm install --production
Modify config.json: homePage, port, sslKey, sslCert etc and "enableAdmin": "true".
And then run node server.js
Server is working fine. I can load https://domenName:443/socket.io/socket.io.js . Console log:
Socket.io is listening at:
https://localhost:443/
Your web-browser (HTML file) MUST set this line:
connection.socketURL = "https://localhost:443/";
Admin page is enabled and running on: https://localhost:443/admin/
Admin page username: adminuser
Admin page password: 34r34fv5gh56jh5jyh54er
For more help: node server.js --help
But when I try to go to the Admin page https://domenName:443/admin/ The server issues this message:
404 Not Found: Unexpected error.
isAdminAuthorized is not defined
ReferenceError: isAdminAuthorized is not defined
at /home/dd/videochat/RTCMultiConnection-master/server.js:80:13
at Server.serverHandler (/home/dd/videochat/RTCMultiConnection-master/node_modules/rtcmulticonnection-server/node_scripts/index.js:48:13)
at Server.<anonymous> (/home/dd/videochat/RTCMultiConnection-master/node_modules/engine.io/lib/server.js:471:22)
at Server.<anonymous> (/home/dd/videochat/RTCMultiConnection-master/node_modules/socket.io/lib/index.js:343:16)
at Server.emit (events.js:182:13)
at parserOnIncoming (_http_server.js:657:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
Ubuntu 16.04.5 LTS
node -v
v11.0.0
nodejs -v
v10.13.0npm
npm -v
6.4.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Metadata API Apex fails to create fields in Connected App
Set ConnectedAppOauthConfig.isAdminApproved = true. All expected Metadata objects are created with no errors. public override PageReference run ...
Read more >Getting a "not defined" error in my JavaScript code when I ...
I am working on a project for SkillCrush and am getting a "not defined" error, when I feel as though I've defined the...
Read more >View topic - MQ 6 config problem - MQSeries.net
I am receiving the following error for my Webspgere MQ 6 installation: 14:25:33 MQCA iwiTestAndLaunchConfig info: Property 'AMQPGMFOLDER' ...
Read more >ConnectedAppPlugin Class | Apex Reference Guide
authorize(userId, connectedAppId, isAdminApproved, context). Authorizes the specified user to access the connected app. If the connected app is set for users to ...
Read more >Metadata API Developer Guide
To understand how Salesforce defines metadata, contrast business data with ... Note the error handling code that follows each API call.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I created another server. There your code has earned and does not load the processor. The point is not in your code, but in the settings of the server software. Honestly, I did not understand what the problem was. Like the version, maybe the new servers on the Azure cloud slowly install updates and because of this there is a conflict that overloads the processor.
Temporary solution. I did a downgrade
rtcmulticonnection-serverto version ‘1.0.5’.I unpacked the previously downloaded
rtcmulticonnection-serverversion ‘1.0.5’ archive and replaced them with all the files in theRTCMultiConnection/node_modules/rtcmulticonnection-server/In the folder
RTCMultiConnection/admin/replaced all files from the version ‘3.5.3’ archive. (With the file /admin/index.html <! - Demo version: 2018.10.15 ->)The load on the processor is almost zero. The service is now stable.