Back End Development and APIs Projects - Timestamp Microservice

Tell us what’s happening:

My timestamp microservice app works correctly, and all responses match the expected output according to the FreeCodeCamp tests. However, the FreeCodeCamp test runner still shows errors, such as ‘Cannot read properties of undefined (reading “error”)’. I have tested my API endpoints manually, and they return the correct responses for valid and invalid inputs. Need help identifying why the tests fail despite everything working correctly
https://freecodecam-boilerplate-gqdaz2xkpxd.ws-us116.gitpod.io

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-gqdaz2xkpxd.ws-us116.gitpod.io

githubLink: https://freecodecam-boilerplate-gqdaz2xkpxd.ws-us116.gitpod.io

Your browser information:

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

Challenge Information:

Back End Development and APIs Projects - Timestamp Microservice

we can’t access your gitpod workspace

here the instructions for how to create a snapshot:

Thanks for guiding me please let me know If I you can access now
https://gitpod.io/new/#https://github.com/freeCodeCamp/boilerplate-project-timestamp

no, that is not a snapshot of your workspace, that is the link to create a new workspace from the starting code

it is redirecting me to my workspace when I click on continue button

https://gitpod.io/new/#https://github.com/freeCodeCamp/boilerplate-project-timestamp

That link will make me create my own workspace, I will not be able to see your code. If you want to share your code you need to do the snapshot thing

I hope I successfully created it

https://gitpod.io#snapshot/11f23dd8-5513-48e4-bd83-ddbdeab31e80

Please let me know if it is working
https://gitpod.io#snapshot/11f23dd8-5513-48e4-bd83-ddbdeab31e80

that works

you need to add your endpoint lower than that, after the middlewares are mounted.

There is a comment // your first API endpoint... after which you can add API endpoints with no issue

1 Like

Thank you so much, I appreciate your work