Chapter 1 tickets returns incorrect answer, even if they are correct

In chapter 1 tickets; connection and projection, i modified the code, the unit tests are working fine, but when i pasted the code and submitted it, I got wrong answers.

Was anyone able to pass the tickets in chapter 1?

Please post your error messages from the console.

There is no error:
npm test -t projection

server@1.0.0 test /home/ayssam/courses
jest --passWithNoTests “projection”

Determining test suites to run…Setup Mongo Connection
PASS test/projection.test.js
Projection
✓ Can perform a country search for one country (88ms)
✓ Can perform a country search for three countries (477ms)

Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 2.083s, estimated 3s
Ran all test suites matching /projection/i.
Teardown Mongo Connection

npm test -t db-connection

server@1.0.0 test /home/ayssam/courses
jest --passWithNoTests “db-connection”

Determining test suites to run…Setup Mongo Connection
PASS test/db-connection.test.js
Connection
✓ Can access MFlix data (39ms)
✓ Can retrieve a movie by id (32ms)
✓ Can retrieve first page of movies (93ms)

Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 1.107s, estimated 2s
Ran all test suites matching /db-connection/i.
Teardown Mongo Connection

I know you do not have error messages while running the unit tests as you wrote the following in the original post:

I want the error messages you get when running the web site.

No error message. I got incorrect Answer

Do you go directly to the status page?

There is some setup done in the homepage that is required for the status page to work. You should access the status page by clicking on the button of the home page.

I think you are talking about this. I feel that I got correct code pasted

Please do not post answers.

Sorry. I haven’t thought that the same code is for everyone. I thought it would be unique for everyone.
I have removed the screenshot now.

I did not setup the status page. I copied the code in the answer textbox

Are the answers of the tickets to copy and paste the string from the status page? like the attached pic. if yes, is there a way to have another chance to re-enter the answer because I used my 3 trials for the three tickets of chapter 1?

Yes, I did. Make sure the projection object has the correct format for the driver. Is not the same as when using the mongo shell.

I think that you will get no more chance as the attempt was limited to 3 only.