Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
B1TSH3LL opened this issue Jun 2, 2024 · 1 comment
Open

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

B1TSH3LL opened this issue Jun 2, 2024 · 1 comment

Comments

@B1TSH3LL
Copy link

B1TSH3LL commented Jun 2, 2024

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 ??

@ayanhasnain03
Copy link

Mail me and we collaborate and solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants