fuadnafiz98F
Convex Community9mo ago
4 replies
fuadnafiz98

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


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(),
  }),
});


What am I doing wrong? someone help thanks 🙂
Was this page helpful?