hubs icon indicating copy to clipboard operation
hubs copied to clipboard

Cannot Fetch Error (Spawner Bug)

Open Cattn opened this issue 3 years ago • 7 comments
trafficstars

Description When attempting to use the spawner tool with certain models, you are unable to publish/export the project, and receive a "Cannot Fetch" error

To Reproduce Steps to reproduce the behavior: Go to the editor Select the Spawner Tool Place down sample model Input model link Attempt to publish/export scene Observe bug

Expected behavior I expected to be able to Export/Publish my project, and use the spawner as intended

Screenshots https://gyazo.com/61bb0eada1477bff24509fb09686efea https://gyazo.com/3a8b36a20aca841c89e2225d41e68dd2

Hardware

  • Device: Laptop (no touch input)
  • OS: Windows
  • Browser: Chrome v94

Additional context https://sketchfab.com/3d-models/turrent-for-submission-final-d1fdfa4d883c415380f92a7f27888979 The model ^^ https://hubs.mozilla.com/scenes/og2WCsb Scene being used ^^ (I've added the model in separately using the model feature and it works as intended)

(Edited Nov 24th 2021 to clarify the steps to reproduce)

┆Issue is synchronized with this Jira Task

Cattn avatar Nov 23 '21 03:11 Cattn

Please note, it seems to be related to rights accessing your servers from different login/accounts. For example, with my account [email protected] I ALWAYS get the problem, no matter the model. With a model working for @Cattn (https://sketchfab.com/3d-models/lamborghini-huracan-gt3-squadra-corse-sdc-648132e9899844c69b89afb1f1585353):

On chrome: error "cannot fetch"

image

On FF: error "NetworkError when attempting to fetch resource"

image

and please note this renders the model UNUSABLE for me, I must delete all the instances (and not only the spawner) of the model to be able to publish, and when I reintroduce any instance of the model I get again the error.

macOS here

My way to ALWAYS reproduce the bug: new spoke scene from "empty", a Crater scene is created. Get a random model from sketchfab (tried dozens of them) and publish, ok. Get a spawner and publish, ok. Copy the model URL to the spawner and publish, kaboom.

BabeleDunnit avatar Nov 24 '21 17:11 BabeleDunnit

Adding on, Windows here

Everything said there is same here, also we have found a way around the bug Screenshot_20211124-133506 That's the way I've found, (actually the way i usually place models never would of thought there would be much of a difference) still looking into it will add everything i can to help

Cattn avatar Nov 24 '21 18:11 Cattn

I was not able to reproduce on MacOS 12.0/Chrome 96

matthewbcool avatar Nov 24 '21 19:11 matthewbcool

I can confirm that if I get the model link WITHOUT PLACING IT and put the link in a spawner everything works also for me, as @Cattn describes. This also REPAIRS models rendered unusable by their usage in the spawner, please see last part of my previous comment.

BabeleDunnit avatar Nov 25 '21 09:11 BabeleDunnit

I was not able to reproduce on MacOS 12.0/Chrome 96

My way to ALWAYS reproduce the bug: new spoke scene from "empty", a Crater scene is created. Get a random model from sketchfab (tried dozens of them) and publish, ok. Get a spawner and publish, ok. Copy the model URL to the spawner and publish, kaboom.

What about using the method?

Cattn avatar Nov 25 '21 16:11 Cattn

I have done some more research. The "cannot fetch" error on Chrome is relative to

image

which points here:

image

it seems that under some conditions a thumbnail of something cannot be generated and the method fails asynchronously, etc. But here we are in Spoke internals, so I gracefully shut my mouth.

Also please note, I have been able to NOT hit the problem by disabling/enabling cache from the developer tools, but not in a consistent way, so just take this as a sidenote.

BabeleDunnit avatar Nov 26 '21 17:11 BabeleDunnit

Not sure if this issues was ever resolved

Cattn avatar Sep 10 '22 13:09 Cattn