Running the push stream to CDN demo from the web code (without changes) I get an error code:
AgoraRTCError LIVE_STREAMING_INVALID_ARGUMENT: data: {"code":451}
I've covered the channel and app id in the following log, but this shows the error. I've verified that the app ID includes the transcoding service and that the token and channel are correct (the host video shows up in my channel correctly).
Here is the log:
[Log] 13:12:26:929 Agora-SDK [DEBUG]: – "[lock-client-publish-6] is created." (AgoraRTC_N.js, line 400)
[Log] 13:12:26:929 Agora-SDK [DEBUG]: – "[lock-client-leave-2] is locked, current queue 1." (AgoraRTC_N.js, line 400)
[Log] 13:12:26:930 Agora-SDK [INFO]: – "[client-29f87] Leaving channel repeated, success" (AgoraRTC_N.js, line 401)
[Log] 13:12:26:930 Agora-SDK [DEBUG]: – "[lock-client-leave-2] is not locked, current queue 0." (AgoraRTC_N.js, line 400)
[Log] client leaves channel success (pushStreamToCDN.js, line 214)
[Log] 13:12:27:900 Agora-SDK [INFO]: – "[client-29f87] start join channel " (AgoraRTC_N.js, line 401)
[Log] 13:12:27:900 Agora-SDK [INFO]: – "[client-29f87] connection state change: DISCONNECTED -> CONNECTING" (AgoraRTC_N.js, line 401)
[Log] 13:12:27:901 Agora-SDK [INFO]: – "[client-29f87] set client role to host" (AgoraRTC_N.js, line 401)
[Log] 13:12:28:149 Agora-SDK [DEBUG]: – "getUserAccount Success 1 => 12883" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:149 Agora-SDK [DEBUG]: – "[client-29f87] Connect to choose_server:" – "https://webrtc2-ap-web-1.agora.io/api/v1" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:149 Agora-SDK [DEBUG]: – "[client-29f87] Connect to choose_server:" – "https://webrtc2-ap-web-2.agoraio.cn/api/v1" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:226 Agora-SDK [DEBUG]: – "[gateway-client-29f87] start connect, url: wss://154-86-156-198.edge.agora.io:4710" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:356 Agora-SDK [DEBUG]: – "[gateway-client-29f87] websocket opened:" – "wss://154-86-156-198.edge.agora.io:4710" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:389 Agora-SDK [INFO]: – "[client-29f87] connection state change: CONNECTING -> CONNECTED" (AgoraRTC_N.js, line 401)
[Log] 13:12:28:390 Agora-SDK [DEBUG]: – "[client-29f87] Connected to gateway server" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:390 Agora-SDK [INFO]: – "[client-29f87] Joining channel success: " (AgoraRTC_N.js, line 401)
[Log] 13:12:28:391 Agora-SDK [INFO]: – "start create microphone audio track with config" – "{}" – "trackId" – "track-ecb6b93e" (AgoraRTC_N.js, line 401)
[Log] 13:12:28:393 Agora-SDK [DEBUG]: – "[track-ecb6b93e] GetUserMedia" – "{"audio":{}}" (AgoraRTC_N.js, line 400)
[Log] 13:12:28:393 Agora-SDK [DEBUG]: – "[lock-safari-1] is locked, current queue 1." (AgoraRTC_N.js, line 400)
[Warning] 13:12:28:474 Agora-SDK [WARNING]: – "[client-29f87] Choose server https://webrtc2-ap-web-2.agoraio.cn/api/v1 failed, message: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: unabl…" (AgoraRTC_N.js, line 401)
"[client-29f87] Choose server https://webrtc2-ap-web-2.agoraio.cn/api/v1 failed, message: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: unable to allocate services in this area, retry: false"
[Log] 13:12:30:769 Agora-SDK [DEBUG]: – "[lock-safari-1] is not locked, current queue 0." (AgoraRTC_N.js, line 400)
[Log] 13:12:30:770 Agora-SDK [DEBUG]: – "[lock-track-ecb6b93e-7] is created." (AgoraRTC_N.js, line 400)
[Log] 13:12:30:770 Agora-SDK [INFO]: – "create audio context" (AgoraRTC_N.js, line 401)
[Log] 13:12:30:775 Agora-SDK [DEBUG]: – "polyfill audio node" (AgoraRTC_N.js, line 400)
[Log] 13:12:30:776 Agora-SDK [DEBUG]: – "polyfill audio node" (AgoraRTC_N.js, line 400)
[Log] 13:12:30:995 Agora-SDK [INFO]: – "create microphone audio track success, trackId:" – "track-ecb6b93e" (AgoraRTC_N.js, line 401)
[Log] 13:12:30:996 Agora-SDK [INFO]: – "start create camera video track with config" – "{}" – "trackId" – "track-d64cd336" (AgoraRTC_N.js, line 401)
[Log] 13:12:30:996 Agora-SDK [DEBUG]: – "[track-d64cd336] GetUserMedia" – "{"video":{}}" (AgoraRTC_N.js, line 400)
[Log] 13:12:30:996 Agora-SDK [DEBUG]: – "[lock-safari-1] is locked, current queue 1." (AgoraRTC_N.js, line 400)
[Log] 13:12:33:219 Agora-SDK [DEBUG]: – "[lock-safari-1] is not locked, current queue 0." (AgoraRTC_N.js, line 400)
[Log] 13:12:33:219 Agora-SDK [DEBUG]: – "[lock-track-d64cd336-8] is created." (AgoraRTC_N.js, line 400)
[Log] 13:12:33:221 Agora-SDK [INFO]: – "create camera video success, trackId:" – "track-d64cd336" (AgoraRTC_N.js, line 401)
[Log] 13:12:33:221 Agora-SDK [DEBUG]: – "[track-track-d64cd336] start video playback" – "{}" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:222 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change none => init" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:226 Agora-SDK [INFO]: – "[client-29f87] Publishing tracks, id track-d64cd336 ,track-ecb6b93e " (AgoraRTC_N.js, line 401)
[Log] 13:12:33:227 Agora-SDK [DEBUG]: – "[lock-client-publish-6] is locked, current queue 1." (AgoraRTC_N.js, line 400)
[Log] 13:12:33:227 Agora-SDK [DEBUG]: – "[client-29f87] publish high stream" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:232 Agora-SDK [DEBUG]: – "[client-29f87-pub-1] add video track to pc" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:232 Agora-SDK [DEBUG]: – "[client-29f87-pub-1] set pc rtp sender" (2) (AgoraRTC_N.js, line 400)
{maxBitrate: undefined}
"balanced"
[Log] 13:12:33:233 Agora-SDK [DEBUG]: – "[client-29f87-pub-1] add audio track to pc" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:238 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change init => playing" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:238 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change playing => waiting" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:240 Agora-SDK [DEBUG]: – "[client-29f87-pub-1] create and set offer success" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:242 Agora-SDK [INFO]: – "[client-29f87-pub-1] connection-state: pub p2p connecting" (AgoraRTC_N.js, line 401)
[Log] 13:12:33:243 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change waiting => suspend" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:274 Agora-SDK [DEBUG]: – "[client-29f87-pub-1] set answer success" (AgoraRTC_N.js, line 400)
[Log] 13:12:33:274 Agora-SDK [INFO]: – "[client-29f87-pub-1] ice-state: pub p2p checking" (AgoraRTC_N.js, line 401)
[Log] 13:12:33:309 Agora-SDK [DEBUG]: – "[pc-1] local candidate count" – 3 (AgoraRTC_N.js, line 400)
[Log] 13:12:33:375 Agora-SDK [INFO]: – "[client-29f87-pub-1] ice-state: pub p2p connected" (AgoraRTC_N.js, line 401)
[Log] 13:12:33:377 Agora-SDK [DEBUG]: – "[lock-client-publish-6] is not locked, current queue 0." (AgoraRTC_N.js, line 400)
[Log] 13:12:33:377 Agora-SDK [INFO]: – "[client-29f87] Publish success, id track-d64cd336 ,track-ecb6b93e " (AgoraRTC_N.js, line 401)
[Log] publish success (pushStreamToCDN.js, line 111)
[Log] 13:12:33:381 Agora-SDK [INFO]: – "[client-29f87-pub-1] connection-state: pub p2p connected" (AgoraRTC_N.js, line 401)
[Log] 13:12:33:381 Agora-SDK [INFO]: – "[client-29f87-pub-1] ice-state: pub p2p completed" (AgoraRTC_N.js, line 401)
[Log] 13:12:34:848 Agora-SDK [DEBUG]: – "[lock-live-streaming-9] is created." (AgoraRTC_N.js, line 400)
[Log] 13:12:34:852 Agora-SDK [DEBUG]: – "[client-29f87] start live streaming https://cdn3.wowza.com/1/VXBkNGV2VEF4a2dV/WlA3Vmpr/hls/live/playlist.m3u8, mode: mix_streaming" (AgoraRTC_N.js, line 400)
[Log] 13:12:34:852 Agora-SDK [DEBUG]: – "[lock-live-streaming-9] is locked, current queue 1." (AgoraRTC_N.js, line 400)
[Log] 13:12:35:81 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change suspend => canplay" (AgoraRTC_N.js, line 400)
[Log] 13:12:35:81 Agora-SDK [DEBUG]: – "[track-d64cd336] video-element-status change canplay => playing" (AgoraRTC_N.js, line 400)
[Log] 13:12:35:158 Agora-SDK [DEBUG]: – "[live-streaming] start connect, url: wss://23-236-99-190.edge.agora.io:30012?serviceName=mix_streaming" (AgoraRTC_N.js, line 400)
[Log] 13:12:35:240 Agora-SDK [DEBUG]: – "[track-d64cd336] current video dimensions:" – 640 – 480 (AgoraRTC_N.js, line 400)
[Log] 13:12:35:405 Agora-SDK [DEBUG]: – "[live-streaming] websocket opened:" – "wss://23-236-99-190.edge.agora.io:30012?serviceName=mix_streaming" (AgoraRTC_N.js, line 400)
[Error] 13:12:35:468 Agora-SDK [ERROR]: – "AgoraRTCError LIVE_STREAMING_INVALID_ARGUMENT: data: {"code":451}"
log (AgoraRTC_N.js:401:270)
error (AgoraRTC_N.js:399:382)
throw (AgoraRTC_N.js:404:522)
(anonymous function) (AgoraRTC_N.js:962:253)
asyncFunctionResume
(anonymous function)
promiseReactionJobWithoutPromise
[Log] 13:12:35:469 Agora-SDK [DEBUG]: – "[lock-live-streaming-9] is not locked, current queue 0." (AgoraRTC_N.js, line 400)
[Error] live streaming error: – "AgoraRTCError LIVE_STREAMING_INVALID_ARGUMENT: "
(anonymous function) (pushStreamToCDN.js:186)
asyncFunctionResume
(anonymous function)
promiseReactionJobWithoutPromise
promiseReactionJob