project_ai_mern_image_generation icon indicating copy to clipboard operation
project_ai_mern_image_generation copied to clipboard

server responded with 500 error when i generate post and try to add to home page but photo is not showing on home page

Open akashmali23 opened this issue 1 year ago • 5 comments

i have tried the fix available like setting up new cluster of mongodb and rechecking the code deeply please help cause it took me 4 hours to resolve this error but it isn't solved yet

akashmali23 avatar May 29 '23 12:05 akashmali23

I had the same problem. Try changing your dns to google's public dns, maybe there's a problem connecting to MongoDB. That solved it for me.

gabsdovz avatar Jun 07 '23 01:06 gabsdovz

can you describe more how you solved it @gabsdovz

akashshukla7458 avatar Jun 08 '23 10:06 akashshukla7458

can you describe more how you solved it @gabsdovz

You can find the walkthrough here(https://developers.google.com/speed/public-dns/docs/using).

In my case on Windows:

I followed the following steps.

Go to the Control Panel. Click Network and Internet > Network and Sharing Center > Change adapter settings.

And in my case: I replaced those addresses with the IP addresses of the Google DNS servers: For IPv4: 8.8.8.8 and 8.8.4.4.

By doing this the connection with MongoDB was established correctly and then the photo was displayed on the home page after being generated and shared.

gabsdovz avatar Jun 08 '23 15:06 gabsdovz

Image still not visible in the home page

AyushJiwatramani avatar Jul 05 '23 16:07 AyushJiwatramani

I just added access from everywhere in the MongoDB cluster and it worked image

vaggelisdrak avatar Jul 25 '23 12:07 vaggelisdrak