Skip to content

Unable to fetch post data in dashboard.jsx #6

@busuyiomotosho

Description

@busuyiomotosho

I'm having an issue with handleSubmit function in the dashboard.jsx, specifically fetching data from /api/posts. When I try submitting a new blog post, I keep getting error 500 (internal server error) coming from the await fetch("/api/posts", {...}) line. I even downloaded a local zip copy of your finished project and ran it on my computer but got the same error. What could be the issue and how do I fix it?

Looking forward to your response, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions