title: Error while running Agora video on production server, works locally
body: <p>I am trying to create a video chat using Angular 6 and Agora Web v2.50 SDK. I followed the tutorial on this link,
  <a href="https://medium.com/@Anderson7301/building-a-video-chat-app-with-agora-and-angular-6-858d72b6fa0d" rel="nofollow noreferrer">https://medium.com/@Anderson7301/building-a-video-chat-app-with-agora-and-angular-6-858d72b6fa0d</a>
  I was able to successfully implement this on my local machine but when I try to run it on the server I am getting “main.c71419ff14e542f66f51.js:1 ERROR TypeError: o.default.debug is not a function”.
  Can you please help me with. The server is running on SSL.</p>
  
  <p>Update - 11/20/2018</p>
  
  <p>I figured out that I needed to use the Dynamic Key for making the video chat work on the server. So I used the Dynamickey Generation Java code and created the token and while trying to join the user I am getting "Agora-SDK [ERROR]: User join failed [ERR_NO_AUTHORIZED]". Here's the log from my angular application.</p>
  
  <p>11:24:34:202 Agora-SDK [INFO]: Creating client , MODE : interop CODEC : vp8
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:215 Agora-SDK [INFO]: Initializing AgoraRTC client, appId: 1d82f0b2b87d445d81dfb2caf4f5e5b9.
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:264 Agora-SDK [INFO]: Initializing AgoraRTC client, appId: 1d82f0b2b87d445d81dfb2caf4f5e5b9.</p>
  
  <p>active.component.ts:649 AgoraRTC client initialized
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:272 Agora-SDK [DEBUG]: Connect to choose_server: <a href="https://ap-web-1.agora.io/api/v1" rel="nofollow noreferrer">https://ap-web-1.agora.io/api/v1</a>
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:282 Agora-SDK [DEBUG]: Connect to choose_server: <a href="https://ap-web-2.agoraio.cn/api/v1" rel="nofollow noreferrer">https://ap-web-2.agoraio.cn/api/v1</a>
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:951 Agora-SDK [DEBUG]: Get gateway address: (3) ["webrtc-159-117-159-4.agora.io:5875", "webrtc-128-1-33-131.agora.io:5866", "webrtc-159-117-159-3.agora.io:5870"]
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:957 Agora-SDK [INFO]: Joining channel: 1000
  AgoraRTCSDK.min.js:2 11:24:34:964 Agora-SDK [DEBUG]: register client Channel 1000 Uid 1587154302
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:34:973 Agora-SDK [DEBUG]: start connect:webrtc-159-117-159-4.agora.io:5875
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:35:131 Agora-SDK [DEBUG]: websockect opened: webrtc-159-117-159-4.agora.io:5875
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:35:235 Agora-SDK [DEBUG]: Connected to gateway server
  AgoraRTCSDK.min.js:2 </p>
  
  <p>11:24:39:336 Agora-SDK [ERROR]: User join failed [ERR_NO_AUTHORIZED]</p>
  
  <p>The Dynamic token generated is <strong>005AQAoAEY5MDBDNERFRkMxNzdDMkJGRjc5QUY5NDY2QTVEMDYzRTY4QTJCMDEQAB2C8LK4fURdgd+yyvT15bmaofNbWm6O7wAAAAAAAA==</strong></p>
  
  <p>AppId for my Project is <strong>1d82f0b2b87d445d81dfb2caf4f5e5b9</strong></p>
  
  <p>thanks for your help in advance</p>