title: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER
body: <p>I am having issue joining a channel. I am making us of <em>agora-web-sdk-ng</em>.</p>
  <p>Below is my code to join a channel:</p>
  <pre><code>  async startVideoStream() {
  
      this.rtc.client = AgoraRTC.createClient({ mode: &quot;live&quot;, codec: &quot;h264&quot;, role: 'host' });
  
      const uid = await this.rtc.client.join(this.options.appId, this.options.channel, this.options.token || null);
  
      this.rtc.localAudioTrack = await AgoraRTC.createMicrophoneAudioTrack();
      this.rtc.localVideoTrack = await AgoraRTC.createCameraVideoTrack();
      this.rtc.localVideoTrack.play('streamVideo')
      await this.rtc.client.publish([this.rtc.localAudioTrack, this.rtc.localVideoTrack]);
  
    }
  </code></pre>
  <p>But for unknown reasons, I keep on getting this error:</p>
  <blockquote>
  <p>core.js:4197 ERROR Error: Uncaught (in promise): AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: invalid token, authorized failed data: {&quot;retry&quot;:false}
  at resolvePromise</p>
  </blockquote>