Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video browser stuck in loading v3 #397

Open
jackgregory opened this issue Dec 20, 2024 · 6 comments
Open

Video browser stuck in loading v3 #397

jackgregory opened this issue Dec 20, 2024 · 6 comments

Comments

@jackgregory
Copy link

jackgregory commented Dec 20, 2024

Describe the bug
Locally the video browser works but when deployed to a Sanity studio the loading spinner is stuck and videos are not displayed, this is for both choosing a video from a field and from the tabs at the top of the studio with the path /mux.

Videos will upload and display on the front end and can query data, but they dont show in the studio in the browser/select window.

Ive tried different API keys, signed URLs but nothing works.

To Reproduce
Install and deploy a clean sanity project e.g. https://github.com/sanity-io/sanity-template-nextjs-clean with mux plugin and deploy to a Sanity studio.

Expected behavior
Videos load

Screenshots
Screenshot 2024-12-20 at 22 42 54

Which versions of Sanity are you using?
@sanity/cli (global) 3.60.0 (latest: 3.68.3)
@sanity/assist 3.0.8 (latest: 3.0.9)
@sanity/eslint-config-studio 4.0.0 (latest: 5.0.1)
@sanity/icons 3.5.5 (up to date)
@sanity/vision 3.68.3 (up to date)
sanity 3.68.3 (up to date)

What operating system are you using?

Which versions of Node.js / npm are you running?
10.1.0
v20.8.0

@jackgregory jackgregory changed the title Production video browser stuck in loading v3 Video browser stuck in loading v3 Dec 22, 2024
@PhilippLiebhart
Copy link

PhilippLiebhart commented Dec 23, 2024

@jackgregory exactly the same issue here!
i have it also locally and deployed when i am on the "Videos" tab in the studio.
using next-sanity.

i can see the videos loading in the network tab but the spinner never ends and videos just don't display.

Screenshot 2024-12-23 at 16 01 18

@jonah-day
Copy link

Same exact issue here

@jonah-day
Copy link

I got it working inadvertently (while trying to fix another dep) by having these dependencies downgraded:

sanity ( 3.68.3 -> 3.67.1 )
@types/react ( 19.0.2 -> 18.3.18 )
@types/react-dom ( 19.0.2 -> 18.3.5 )
react ( 19.0.0 -> 18.3.1 )
react-dom ( 19.0.0 -> 18.3.1 )

not sure which are the actual culprit but I hope this helps!

@jackgregory
Copy link
Author

UPDATE: This looks strangely coincidental but since launching the studio for this project, the API usage has gone through the roof. It seems that this plugin may be to blame as its stuck loading the videos, but seen in the network tab it is calling the sanity API over and over again without resolving causing massive usage.

@jonah-day
Copy link

That's hilarious- literally 10 minutes ago I was on my sanity dashboard (for an unlaunched site I've barely tested) trying to figure out why I had already burned through 10% of the bandwidth 😂 guess that solves it!

@ArtlookAgency
Copy link

ArtlookAgency commented Dec 30, 2024

I have a same problem. But when I open console i saw this problem cors.

Ekran Resmi 2025-12-30 15 38 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants