shaderbytes / Sketchfab-Viewer-API-Utility

If you plan to use the Sketchfab Viewer API on your websites I have created a utility that abstracts much of the coding required to do things.
https://shaderbytes.co.za/sketchfab/development/api/utility
35 stars 9 forks source link

a call to "init()" on the sketchfab client object has failed #4

Open geosem42 opened 5 years ago

geosem42 commented 5 years ago

I'm getting this error whenever I upload my files to an online web server.

The error is coming from SketchfabAPIUtility.js:112:9

You can check the errors here: http://digital-mena.com/configurator/

Along with these warnings

Sketchfab

It works locally just fine though. Any idea what's causing it?

shaderbytes commented 5 years ago

I dont think it has anything to do with the Utility tool , if you look lower down on the screenshot you sent you see it also had a warning/error in loading the sketchfab-viewer-1.4.2.js.

This is probably why you then have an error in the utility , because the sketchfab object is undefined. First fix that error and then if you still have an error with my code let me know.

Cheers

On Mon, Mar 25, 2019 at 12:19 PM George notifications@github.com wrote:

I'm getting this error whenever I upload my files to an online web server.

The error is coming from SketchfabAPIUtility.js:112:9

Along with these warnings

[image: Sketchfab] https://camo.githubusercontent.com/a2d62123772d0761f0c3b565acab8eee552e9512/68747470733a2f2f692e696d6775722e636f6d2f774234705852732e706e67

It works locally just fine though. Any idea what's causing it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shaderbytes/Sketchfab-Viewer-API-Utility/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDa_lk_aSFv6NNNKA6jq_-4IACF6yihks5vaKLLgaJpZM4cGhU4 .

geosem42 commented 5 years ago

Do you have any idea why I'm getting an error with sketchfab-viewer in the first place?

I'm really clueless here.

shaderbytes commented 5 years ago

http://digital-mena.com/configurator/vendor/sketchfab/sketchfab-viewer-1.4.2.js results in a 404 ( nothing found at this url )

I dont know much about source maps , in the error it says it is a source map error. Then it displays this url above which doesnt work and then the url for the source map , which is some local path.

So for starters try to understand the source map requirements , what it is supposed to be doing etc. Obviously it is outputting a url which results in an error find out why. If the viewer is never loaded then the code to use the api or my utility wont work either.

hth

On Tue, Mar 26, 2019 at 4:02 PM George notifications@github.com wrote:

Do you have any idea why I'm getting an error with sketchfab-viewer in the first place?

I'm really clueless here.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/shaderbytes/Sketchfab-Viewer-API-Utility/issues/4#issuecomment-476656295, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDa_qZCbzB64W9U34MNOzB5YlSQxQiXks5vaih-gaJpZM4cGhU4 .