Code Monkey home page Code Monkey logo

Whenever I try to share API generated image to the home page, it gives me "POST http://localhost:8080/api/v1/post 500 (Internal Server Error) handleSubmit @ CreatePost.jsx:23" error even after giving "Success" alert. about project_ai_mern_image_generation HOT 3 CLOSED

Atul240202 avatar Atul240202 commented on June 11, 2024
Whenever I try to share API generated image to the home page, it gives me "POST http://localhost:8080/api/v1/post 500 (Internal Server Error) handleSubmit @ CreatePost.jsx:23" error even after giving "Success" alert.

from project_ai_mern_image_generation.

Comments (3)

ShadabImran07 avatar ShadabImran07 commented on June 11, 2024 1

hey can you check your server index file and postRoutes file
for me have same just replace with this code app.get("/", async (req, res) => { res.status(200).json({ message: "Hello from DALL.E!", }); });
and my error is solved

from project_ai_mern_image_generation.

HarshAjayKothare avatar HarshAjayKothare commented on June 11, 2024

@ShadabImran07
what and where did you replace this, i cant understand plzx help

from project_ai_mern_image_generation.

ShadabImran07 avatar ShadabImran07 commented on June 11, 2024

In back-end file main index.js file

from project_ai_mern_image_generation.

Related Issues (20)

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.