Git Product home page Git Product logo

full-stack-estate's People

Contributors

safak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

full-stack-estate's Issues

profileUpdatePage Error

after creating profile update page this errors occurred in web page and console how can we fix it

Unexpected Application Error!
Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
Error: Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
at throwOnInvalidObjectType (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11222:17)
at reconcileChildFibers2 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11852:15)
at reconcileChildren (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14292:37)
at updateHostComponent (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14802:11)
at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:15923:22)
at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19749:22)
at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19194:20)
at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19133:13)
at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19112:15)
at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18732:28)
at performConcurrentWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18680:30)
at workLoop (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:197:42)
at flushWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:176:22)
at MessagePort.performWorkUntilDeadline (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:384:29)
**Here the error occur in console **
Argument user is missing.
at Tn (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Kavindu/Desktop/Push/api/controllers/post.controller.js:44:21) {
clientVersion: '5.13.0'
}

ENV Example Please!

Would you mind adding the .env.example file to guide us on all the environment variables used.

"unique" restriction in Prisma Schema

The @unique restrictions in SavedPost { userId and postId} generates an error when you try to save a post with different accounts, limiting the Save function to a single user.

Improved code:

model SavedPost {
id String @id @default(auto()) @Map("_id") @db.ObjectId
user User @relation(fields: [userId], references: [id])
post Post @relation(fields: [postId], references: [id])
userId String @db.ObjectId
postId String @db.ObjectId
createdAt DateTime @default(now())

@@unique([userId, postId])
}

post creation error

Argument user is missing. error affecting only when using client side software, when using api handling software Postman post was created successfully

PrismaClientValidationError:
Invalid prisma.post.create() invocation:

{
data: {
title: "topi",
price: 595,
address: "gopi",
city: "bbuyy",
bedroom: null,
bathroom: null,
type: "rent",
property: "apartment",
latitude: "Nihil gloriosis solum extremo",
longitude: "Expectant solvantur antiquis sentiant",
images: [
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644668/posts/bdml2i788ltutawhuoff.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/x4h0ryoxp1wlfqmqgq8h.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/ear2u64cifehvcqdarf8.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644671/posts/tbypzq9tioysgcca5kup.jpg"
],
userId: "663218604260a76920dd4c9b",
postDetail: {
create: {
desc: "

lorem ispum

",
utilities: "owner",
pet: "allowed",
income: "Mundi amarissimam didicisset eripuit",
size: 3979,
school: 5491,
bus: 2234,
restaurant: 7662
}
},

  • user: {
  • create: UserCreateWithoutPostInput | UserUncheckedCreateWithoutPostInput,   
    
  • connectOrCreate: UserCreateOrConnectWithoutPostInput,
    
  • connect: UserWhereUniqueInput      
    
  • }
    }
    }

Argument user is missing.
at Tn (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Shreyash1/Desktop/real-estate-react-project/api/controllers/post.controller.js:67:25) {
clientVersion: '5.13.0'
}
[nodemon] restarting due to changes...
[nodemon] starting node api/app.js app.js
test
server is running on port 5000
PrismaClientValidationError:
Invalid prisma.post.create() invocation:

{
data: {
title: "topi house",
price: 595,
address: "gopi",
city: "mars",
bedroom: 1,
bathroom: 1,
type: "rent",
property: "apartment",
latitude: "83787533",
longitude: "36346433",
images: [
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644668/posts/bdml2i788ltutawhuoff.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/x4h0ryoxp1wlfqmqgq8h.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/ear2u64cifehvcqdarf8.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644671/posts/tbypzq9tioysgcca5kup.jpg"
],
userId: "663218604260a76920dd4c9b",
postDetail: {
create: {
desc: "

lorem ispum

",
utilities: "owner",
pet: "allowed",
income: "Mundi amarissimam didicisset eripuit",
size: 3979,
school: 5491,
bus: 2234,
restaurant: 7662
}
},

  • user: {
  • create: UserCreateWithoutPostInput | UserUncheckedCreateWithoutPostInput,   
    
  • connectOrCreate: UserCreateOrConnectWithoutPostInput,
    
  • connect: UserWhereUniqueInput      
    
  • }
    }
    }

Argument user is missing.
at Tn (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Shreyash1/Desktop/real-estate-react-project/api/controllers/post.controller.js:66:25) {
clientVersion: '5.13.0'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.