question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exercise Tracker App: 5th test times out

See original GitHub issue

Describe your problem and how to reproduce it: I can’t figure out why the 5th test times out with this error:

I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). App will return the user object with added array log and count (total exercise count). (Test timed out)
// tests completed

The strange thing is that all other tests are passing including the last one which is using the same endpoint as the 5th one. I also test it manually and it is working fine. I even added a middleware to check all incoming requests and used the same endpoints to clarify that there is no problem with the code.

I am using Glitch for the challenge.

Add a Link to the page with the problem: https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ShaunSHamiltoncommented, Jun 14, 2020

@pinglinh , Well, the file is a MarkDown file with the tests written in a yaml syntax, but that is parsed before being run. The tests are run using Chai asserts, but most of it is plain JS.

It may help to go through the above mentioned forum post.

0reactions
ShaunSHamiltoncommented, Dec 16, 2020

@nhcarrigan I am going to close this, as it has not come up again since (that I have experienced or seen). It can simply be reopened if we manage to replicate it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exercise Tracker test times out - The freeCodeCamp Forum
App will return the user object with added array log and count (total exercise count).”) times out. I tried different variations, but can't...
Read more >
The Best Workout Apps for 2022 - PCMag
Trim down or bulk up, run faster or bike farther—however you work out, these top tested apps help you keep your commitment to...
Read more >
Google Fit: Activity Tracker 4+ - App Store
Get to a healthier and more active life with Google Fit! It's hard to know how much or what kind of activity you...
Read more >
Best Fitness Apps of 2023 - Verywell Fit
Our Top Picks · MyFitnessPal · Daily Workouts Fitness Trainer · Zones for Training · Alo Moves · Glo · Sworkit · JEFIT...
Read more >
Best running apps for 2022 - Tom's Guide
The app records your pace, distance, total exercise time, calories burned and other useful metrics, while delivering a variety of training plans ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found