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!
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"
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 |
Someone could help me ??