adrianhajdin / project_tiktik

https://jsmastery.pro
599 stars 181 forks source link

Unhandled Runtime Error ClientError: the mutation(s) failed: Insufficient permissions; permission "update" required #14

Open punkundo opened 2 years ago

punkundo commented 2 years ago

In the second minute 02:46:00, I had an error in Upload Video, Looking forward to everyone's help. Thanks!!! image

MemoRoyale commented 2 years ago

Heya, The main problem is your .env file if u hover your mouse in the client file on token: NEXT_PUBLIC_SANITY_TOKEN it will show that its undefined. I couldn't solve the problem of the .env file but I paste the token directly on my client file and it work.

punkundo commented 2 years ago

Ohh!! Thank you very much!! My problem is solved

mrtonymu commented 2 years ago

Heya, The main problem is your .env file if u hover your mouse in the client file on token: NEXT_PUBLIC_SANITY_TOKEN it will show that its undefined. I couldn't solve the problem of the .env file but I paste the token directly on my client file and it work.

hey may i know where you paste the token to ? like which file ?

MemoRoyale commented 2 years ago

Heya, The main problem is your .env file if u hover your mouse in the client file on token: NEXT_PUBLIC_SANITY_TOKEN it will show that its undefined. I couldn't solve the problem of the .env file but I paste the token directly on my client file and it work.

hey may i know where you paste the token to ? like which file ?

Hi, i have stated, in the client file. Client.ts if i'm not mistaken ^^