fuadnafiz98
fuadnafiz982mo ago

Unable to run schema Validation

Hello I am getting this error
✖ Error: Unable to run schema validation on https://necessary-tern-577.convex.cloud
✖ TypeError: fetch failed
Failed due to network error, retrying in 1.19s...
Retrying request (attempt 6/6)...
Retrying request (attempt 3/6)...
⠇ Checking for index or schema changes...
Retrying request (attempt 4/6)...
⠸ Checking for index or schema changes...
Retrying request (attempt 5/6)...
⠇ Checking for index or schema changes...
Retrying request (attempt 6/6)...
✖ Error: Unable to run schema validation on https://necessary-tern-577.convex.cloud
✖ TypeError: fetch failed
✖ Error: Unable to run schema validation on https://necessary-tern-577.convex.cloud
✖ TypeError: fetch failed
Failed due to network error, retrying in 1.19s...
Retrying request (attempt 6/6)...
Retrying request (attempt 3/6)...
⠇ Checking for index or schema changes...
Retrying request (attempt 4/6)...
⠸ Checking for index or schema changes...
Retrying request (attempt 5/6)...
⠇ Checking for index or schema changes...
Retrying request (attempt 6/6)...
✖ Error: Unable to run schema validation on https://necessary-tern-577.convex.cloud
✖ TypeError: fetch failed
and I just updated the user schema
export default defineSchema({
...authTables,
users: defineTable({
name: v.optional(v.string()),
image: v.optional(v.string()),
email: v.optional(v.string()),
emailVerificationTime: v.optional(v.number()),
phone: v.optional(v.string()),
phoneVerificationTime: v.optional(v.number()),
isAnonymous: v.optional(v.boolean()),
role: v.optional(v.string()),
})
.index("email", ["email"])
.index("phone", ["phone"]),

numbers: defineTable({
value: v.number(),
}),
});
export default defineSchema({
...authTables,
users: defineTable({
name: v.optional(v.string()),
image: v.optional(v.string()),
email: v.optional(v.string()),
emailVerificationTime: v.optional(v.number()),
phone: v.optional(v.string()),
phoneVerificationTime: v.optional(v.number()),
isAnonymous: v.optional(v.boolean()),
role: v.optional(v.string()),
})
.index("email", ["email"])
.index("phone", ["phone"]),

numbers: defineTable({
value: v.number(),
}),
});
What am I doing wrong? someone help thanks 🙂
4 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart2mo ago
That's a network error, is it still failing?
fuadnafiz98
fuadnafiz98OP2mo ago
Its fixed now but do you know what should I do if this happens again? its kinda blocker when developing locally, I think the best solution would be to run self-hosted one, but curious to hear your thoughts
erquhart
erquhart2mo ago
It can happen for either local network reasons, using a vpn can cause issues, or it could be a service issue with Convex. But it's rare on the Convex side.

Did you find this page helpful?