DevMatchups icon indicating copy to clipboard operation
DevMatchups copied to clipboard

Profile Upgradation not Working properly

Open Rupendra0 opened this issue 1 year ago • 3 comments

when i am trying to upgrade my profile , it shows a error ; attached video Screenshot 2025-01-04 000206

Rupendra0 avatar Jan 03 '25 18:01 Rupendra0

@Rupendra0 See if you can solve this by seeing what message you get in the console. I am assigning you.

harsh3dev avatar Jan 04 '25 05:01 harsh3dev

This is the log from the backend which can be analysed to solve this issue.


Error updating user: PrismaClientValidationError: 
Invalid `prisma.user.update()` invocation:

{
  where: {
    id: "cm2dn1niz00002t0j5enw4kp4"
  },
  data: {
    name: "Harsh Pandey",
    username: "",
    email: "[email protected]",
    emailVerified: null,
    image: "",
    bio: "",
    role: "USER",
    applications: [],
                  ~~
    hackathons: [],
    accounts: [],
    skills: [],
    resumeUrl: "",
    linkedinUrl: "",
    githubUrl: "",
    loading: false,
    error: null,
    user: {
      id: "cm2dn1niz00002t0j5enw4kp4",
      name: "Harsh Pandey",
      username: null,
      email: "[email protected]",
      emailVerified: "2024-10-17T18:32:24.198Z",
      image: "https://avatars.githubusercontent.com/u/121597877?v=4",
      password: null,
      bio: null,
      role: "Frontend Developer",
      createdAt: "2024-10-17T18:32:23.388Z",
      updatedAt: "2024-10-18T20:14:36.746Z",
      resumeUrl: "https://caption-yash12.s3.ap-south-1.amazonaws.com/resumes/1729282476227-Harsh%20Pandey%20Resume.pdf",
      linkedinUrl: "https://www.linkedin.com/in/harsh3dev",
      githubUrl: "https://www.github.com/harsh3dev",
      skills: [
        "Javascript",
        "Nodejs",
        "Reactjs"
      ]
    }
  }
}

Argument `applications`: Invalid value provided. Expected ApplicationUpdateManyWithoutUserNestedInput or ApplicationUncheckedUpdateManyWithoutUserNestedInput, provided ().
    at Dn (/var/task/node_modules/@prisma/client/runtime/library.js:114:8082)
    at Mn.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:121:7396)
    at Mn.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:121:7061)
    at Mn.request (/var/task/node_modules/@prisma/client/runtime/library.js:121:6745)
    at async l (/var/task/node_modules/@prisma/client/runtime/library.js:130:9633)
    at async l (/var/task/.next/server/app/api/user/route.js:1:1436)
    at async /var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36957
    at async eC.execute (/var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27552)
    at async eC.handle (/var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38291)
    at async es (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:16:25085) {
  clientVersion: '5.20.0'
}

harsh3dev avatar Jan 09 '25 09:01 harsh3dev

I can fix the issue

mynk8 avatar Jan 09 '25 14:01 mynk8