adrianhajdin / threads

Develop Threads, Next.js 13 app that skyrocketed to 100 million sign-ups in less than 5 days, and dethroned giants like Twitter, ChatGPT, and TikTok to become the fastest-growing app ever!
https://threads-psi.vercel.app
1.42k stars 272 forks source link

Thread validation failed: text: Cast to ObjectId failed #114

Open B1TSH3LL opened 1 month ago

B1TSH3LL commented 1 month ago

I was trying to build the project along with the video. at timestamp 2:50:00 , i got an error as

Error: Error while creating thread: Thread validation failed: text: Cast to ObjectId failed for value "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris mi nisi, porta at tortor ac, condimentum egestas diam. In vel placerat lectus. Vestibulum sed ultrices erat, sed dignissim dolor." (type string) at path "text" because of "BSONError"

Source lib\actions\thread.actions.ts (37:11) @ createThread 35 | revalidatePath(path); 36 | } catch (error: any) { > 37 | throw new Error(Error while creating thread: ${error.message}); | ^ 38 | } 39 | } 40 |

image image

Someone could help me ??