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

Error Message when deleting an image from the library #42

Open
mikepziegler opened this issue Aug 30, 2022 · 4 comments
Open

Error Message when deleting an image from the library #42

mikepziegler opened this issue Aug 30, 2022 · 4 comments

Comments

@mikepziegler
Copy link

I have a problem, where I cant delete the pictures I've uploaded.

Reproduce the Error:

From Dashboard

  1. Go to "Media Library"
  2. Select an image
  3. Click on "delete"

Error:
o: the mutation(s) failed: Insufficient permissions; permission "update" required

Screenshots:

Bildschirmfoto 2022-08-30 um 21 00 26

image

Sanity.json:

{
  "root": true,
  "project": {
    "name": ""
  },
  "api": {
    "projectId": "",
    "dataset": ""
  },
  "plugins": [
    "@sanity/base",
    "@sanity/default-layout",
    "@sanity/default-login",
    "@sanity/desk-tool",
    "media-library"
  ],
  "env": {
    "development": {
      "plugins": [
        "@sanity/vision"
      ]
    }
  },
  "parts": [
    {
      "name": "part:@sanity/base/schema",
      "path": "./schemas/schema"
    }
  ]
}
@matt-sanders
Copy link

matt-sanders commented Sep 12, 2022

I also get this issue when trying to update fields like "Title", "Alt", etc from the media library. When inspecting the request I see that it doesn't include the auth token in the headers. This is running on localhost so maybe that's got something to do with it?

@treb0r
Copy link

treb0r commented Dec 6, 2022

I am having the same problem. I imported a dataset that uses sanity-media-library into a new project. All of the media is there, including alt tags etc but I cannot edit add, or update them without seeing the following error:
clientError: Mutations failed with 1 error(s).
I have hundred of images in there and I'm really stuck with this. How can I debug?

@Aratramba
Copy link
Owner

tbh I don't know why this happens. Does it work when you change from this plugin to the media-browser plugin? https://www.sanity.io/plugins/sanity-plugin-media

@jimmi-joensson
Copy link

I'm experiencing the exact same as described by @treb0r

#42 (comment)

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

5 participants