Closed pdxbenjamin closed 5 years ago
I also get this error when I try to connect the chat.
[Error] XMLHttpRequest cannot load https://ps2ad2e702.pubnub.com/publish/pub-c-7d455635-7a79-417a-af25-ecabd0ef3df9/sub-c-0806b59a-606c-11e7-8fcc-0619f8945a4f/0/906/0/%7B%22packet%22%3A%7B%22hangup%22%3Atrue%7D%2C%22id%22%3A%22c583e2d4-5804-4f95-8457-b362d417e724%22%2C%22number%22%3A%22285%22%7D?uuid=7903e77f-5f7a-4142-b0f1-d0deeb6dadb1 due to access control checks.
Update: I get these errors on Mobile Safari Develop tools when attempting the live demo. I attempt, https://www.pubnub.com/developers/demos/webrtc/ on Desktop with Chrome. Then, then call link on mobile safari https://stephenlb.github.io/webrtc-sdk/?call=265
[Error] XMLHttpRequest cannot load https://ps14.pubnub.com/time/0?uuid=3c7446be-2b51-4975-b608-b31e6f805ccf&pnsdk=PubNub-JS-Web%2F3.6.7 due to access control checks. ajax (pubnub.js:3053) xdr (pubnub.js:2931) time (pubnub.js:831) fail (pubnub.js:1096) done (pubnub.js:3018) onabort (pubnub.js:3028) [Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. (anonymous function) rejectPromise play snapshots_setup (webrtc.js:341) (anonymous function) (webrtc.js:415) promiseReactionJob [Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. (anonymous function) rejectPromise play play (sound.js:41) connected (webrtc-sdk:171) onaddstream (webrtc.js:371) (anonymous function) (webrtc.js:144:90)
This happens sometimes when connecting to new feeds. You should see a canceled
request in the HTTP Network tab. This error will print in the console, however the SDK code automatically recovers.
I'm getting this error in mobile safari on iPhone.
[Error] XMLHttpRequest cannot load https://ps15.pubnub.com/time/0?uuid=7903e77f-5f7a-4142-b0f1-d0deeb6dadb1 due to access control checks. ajax (pubnub.js:3053) xdr (pubnub.js:2931) time (pubnub.js:831) fail (pubnub.js:1096) done (pubnub.js:3018) onabort (pubnub.js:3028)
I host a session with Chrome Desktop, and try to video chat with an iPhone using mobile safari. Using the mobile safari Develop Web Inspector I get this error on load.
Please help.