adrianhajdin / project_ai_mern_image_generation

Build and Deploy a Full Stack MERN AI Image Generation App MidJourney & DALL E Clone
https://jsmastery.pro
1.09k stars 303 forks source link

Posts are not getting fetched in the home page #14

Open Bibhavshah opened 1 year ago

Bibhavshah commented 1 year ago

@TidbitsJS image

I completed the youtube tutorial step by step understanding and do the same things done in the tutorial but my home page where the posts are I have uploaded on cloudinary are not getting fetched and always says no posts exist. please help me solve the problem.

Here is the link to my repo: https://github.com/Bibhavshah/Dalle_Ai

joelhkbn commented 1 year ago

You have error in index.js on backend

image

it should be

app.get('/', (req, res) => { res.send('Hello from DALL-E') })

Bibhavshah commented 1 year ago

You have error in index.js on backend

image

it should be

app.get('/', (req, res) => { res.send('Hello from DALL-E') })

I think it should not have any difference because anyway its sending the response, just the difference is that mine is send it in JSON while the code you wrote is send text.

joelhkbn commented 1 year ago

can i see your render logs?

Bibhavshah commented 1 year ago

image

joelhkbn commented 1 year ago

no. like this image

Bibhavshah commented 1 year ago

image