Asset loading errors on Hubs Cloud custom client and associated Spoke instance #4127
-
Hi all, We're trying to use the Spoke editor associated with our deployed Hubs Cloud custom client to develop some new scenes. In the process, we've run into a few different asset loading issues. In particular, 3D models from Sketchfab (including the default rubber ducky that Spoke spawns when first instantiating a new model or spawner) won't load for us. In Spoke, we get the following error in the console when we attempt to load the default ducky:
...and if we try to load the same model in Hubs, the spawned object remains in the loading state forever, without ever logging an error or explicitly failing to load. We've also seen a similar problem with image assets when we create a new image in Spoke: the default Spoke icon image fails to load and logs the following error.
However, if we change the URL to that of an image hosted on another server (eg this example from Wikimedia), the selected image will load. I get the impression from searching for similar errors that this might be a CORS issue of some sort. If it is, though, I'm not sure what to do about it. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured out the Sketchfab model import issue: you need to set a Sketchfab API key in your Hubs Cloud admin panel if you want to import models from Sketchfab. I assume the same is true for Google Poly but haven’t tested this yet. This might be a good place for a clearer error message (one that points the user toward the need for an API key if one isn’t set.) It also might be good to clarify the docs page on Sketchfab/Poly integration to make it clear that you need an API key for model import even if you don’t care about model search, since right now it only explicitly says you need an API key for the latter. Still not sure what’s going on with the default image for Spoke image entities being missing, but it seems unrelated to the model import problem, and it isn’t really getting in our way now that the model issue is resolved. |
Beta Was this translation helpful? Give feedback.
Figured out the Sketchfab model import issue: you need to set a Sketchfab API key in your Hubs Cloud admin panel if you want to import models from Sketchfab. I assume the same is true for Google Poly but haven’t tested this yet.
This might be a good place for a clearer error message (one that points the user toward the need for an API key if one isn’t set.) It also might be good to clarify the docs page on Sketchfab/Poly integration to make it clear that you need an API key for model import even if you don’t care about model search, since right now it only explicitly says you need an API key for the latter.
Still not sure what’s going on with the default image for Spoke image entities bei…