Timeout error in createAndSavePerson

Tell us what’s happening:
Heya! So for this challenge I’m supposed to create and save a person, & I’ve done that. I’ve looked at hints, solutions & stack Overflow and the code looks good. however whenever I submit the link I get a “Creating and saving a db item should succeed (Test timed out)” error.

I tried playing around with the code and checked if mongo is connected and gave access from anywhere but that still didn’t work. What am I doing wrong??

Your project link(s)

solution: boilerplate-mongomongoose-2 - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36

Challenge: Create and Save a Record of a Model

Link to the challenge:


I don’t think you’re doing anything wrong.
I just copied your code into my replit and it passed the test.

It’s probably worth just trying again, ideally at a quieter time of day for network activity e.g. early morning.

If that doesn’t work, the suggestions for replit timeout problems that I’ve seen in other threads seem to boil down to:

  • try using a VPN
  • or use a different platform

I’ve seen Glitch suggested several times as an alternate platform, and I saw a thread a few days ago where someone had used GitPod to get past replit timeout problems.

(I had endless timeouts in replit yesterday on the first part of of the Quality Assurance certification. I’m planning to try GitPod when I move on to the next section.)

1 Like


Tried running the code after a whole day passed, still didnt work. :confused:
props gonna use GitPod like you suggested since I’ve used it before :smiley:

Thank you for helping out!!

try moving your johndoe person object assignment to inside callback function

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.