Embedded viewer: Errors in console


(Mskogly) #1

When I do inspect > Console on a post with a sketchfab viewer embeded I get several errors. The embed code is fresh, taken from sketchfab yesterday, still it gives a warning about a deprecated api:

Example:

Warning:
you are using a deprecated api, please update to the new one, read mode xxxx

Error:
Uncaught (in promise) TypeError: Cannot set property ‘_hmd’ of undefined
at viewer-ea8c2b8d2054bc980e31.js:17


(Shaderbytes) #2

i also get that hmd error , I also get another error in chrome , maybe somthing to do with me using local host while testing:

sketchfab-viewer-1.1.0.js:733 Uncaught DOMException: Failed to read the ‘contentDocument’ property from ‘HTMLIFrameElement’: Blocked a frame with origin “http://localhost:24787” from accessing a cross-origin frame.
at Sketchfab. (https://static.sketchfab.com/api/sketchfab-viewer-1.1.0.js:733:41)

In IE Edge i get spammed with another webgl error , I did report in here in the forums as well. Not ideal but at least the site works regardless of those errors.


(Shaderbytes) #3

and everytime i open up sketchfab with the viewer api in firfox it launches the steam vr app thing with errors in it as well :

image


#4

Hmm, I thought this was fixed lately. @tuan_kuranes or @nehon probably knows better.


(Paul Sketch) #5

Warning:
you are using a deprecated api, please update to the new one, read mode xxxx
sketchfab-viewer-1.1.0.js:733 Uncaught DOMException: Failed to read the ‘contentDocument’ property from ‘HTMLIFrameElement’: Blocked a frame with origin “http://localhost:24787” from accessing a cross-origin frame.

Those two warning wil be fixed in next release. (with api viewer 1.2)

Error:
Uncaught (in promise) TypeError: Cannot set property ‘_hmd’ of undefined
at viewer-ea8c2b8d2054bc980e31.js:17
Steam/oculus needing to be open at sketchfab load

Webvr lacks mechanism to query it without launching all those, we’ll have to make it a multiple click (one to query launch steam/oculus, then one to launch webvr.)

IE Edge

Investigated and reported to Edge Team.