project_ai_mern_image_generation icon indicating copy to clipboard operation
project_ai_mern_image_generation copied to clipboard

Posts are not getting fetched in the home page

Open Bibhavshah opened this issue 2 years ago • 6 comments

@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

Bibhavshah avatar Jan 27 '23 06:01 Bibhavshah

You have error in index.js on backend

image

it should be

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

joelhkbn avatar Jan 27 '23 16:01 joelhkbn

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.

Bibhavshah avatar Jan 27 '23 16:01 Bibhavshah

can i see your render logs?

joelhkbn avatar Jan 27 '23 16:01 joelhkbn

image

Bibhavshah avatar Jan 27 '23 17:01 Bibhavshah

no. like this image

joelhkbn avatar Jan 27 '23 17:01 joelhkbn

image

Bibhavshah avatar Jan 27 '23 17:01 Bibhavshah