
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see you're experiencing an "Invalid path string" error in the Desk tool when trying to access a specific post. Based on the stack trace and your description, this is almost certainly related to the custom image type you added to your schema. The error is coming from ConnectorsOverlay which is part of the change tracking system in Sanity Studio, and the fromString function is failing to parse a path in your document.
Here are the steps to resolve this:
Since you mentioned you don't mind deleting this post, the quickest solution is to delete it directly through the API or Vision tool:
Using Vision (in your Studio):
http://localhost:3333/vision)*[_type == "post"] {_id, title}_id of the problematic postUsing the Management API:
You can use the Management API to delete the document. Get a token from manage.sanity.io with write permissions, then:
curl -X DELETE \
'https://[YOUR-PROJECT-ID].api.sanity.io/v2021-06-07/data/mutate/[YOUR-DATASET]' \
-H 'Authorization: Bearer [YOUR-TOKEN]' \
-H 'Content-Type: application/json' \
-d '{"mutations": [{"delete": {"id": "YOUR-DOCUMENT-ID"}}]}'The root cause is likely in how you defined your custom image type. According to the Image Type documentation, make sure your custom image field follows this pattern:
{
name: 'customImage',
type: 'image',
options: {
hotspot: true
},
fields: [
{
name: 'alt',
type: 'string',
title: 'Alternative text',
}
]
}Common mistakes that cause path errors:
fields array_key values in array itemsAfter fixing the schema:
# In your Studio directory
rm -rf node_modules/.cache
npm run devIf you need to save the content before deleting:
*[_id == "YOUR-DOCUMENT-ID"][0]The invalid path is likely in the image field's internal structure - possibly an empty or malformed _key value, an incorrectly nested field path, or a field name that doesn't match your schema definition.
Let me know if deleting the document and fixing your schema resolves the issue!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store