"Issue tracker" doesn't pass

Hello. I have almost finished the issue tracker challenge, the tests all pass and it works as expected.

But it does not pass the system tests. I get the error returned

You can send a GET request to /api/issues/{projectname} for
an array of all issues for that specific projectname, with all
the fields present for each issue. (Test timed out)

You can send a GET request to /api/issues/{projectname} and
filter the request by also passing along any field and value as
a URL query (ie. / Api / issues / {project}? Open = false). You
can pass one or more field / value pairs at once. (Test timed out)

The fact is that the last GET routing statement, res.send(data)
returns this data structure:

[
    {
      _id: 6061a01f28eb7c01250ae79a,
      project_name: 'get_issues_test_718990',
      issue_text: 'Get Issues Test',
      created_by: 'fCC',
      issue_title: 'Faux Issue 1',
      created_on: 2021-03-29T09:38:39.100Z,
      updated_on: 2021-03-29T09:38:39.100Z,
      open: true,
      __v: 0
    },
    {
      _id: 6061a02028eb7c01250ae79b,
      project_name: 'get_issues_test_718990',
      issue_text: 'Get Issues Test',
      created_by: 'fCC',
      issue_title: 'Faux Issue 2',
      created_on: 2021-03-29T09:38:40.114Z,
      updated_on: 2021-03-29T09:38:40.114Z,
      open: true,
      __v: 0
    },
    {
      _id: 6061a02128eb7c01250ae79c,
      project_name: 'get_issues_test_718990',
      issue_text: 'Get Issues Test',
      created_by: 'fCC',
      issue_title: 'Faux Issue 3',
      created_on: 2021-03-29T09:38:41.459Z,
      updated_on: 2021-03-29T09:38:41.459Z,
      open: true,
      __v: 0
    }
  ]
}

which seems to me to match exactly what the problem is asking for (an array of all issues for that specific projectname).

What could be the problem?
What do you expect to actually receive the system test?

This is the link to replit in the case you want to give an eye to it.

I don’t know if this helps but the one that FCC builds doesn’t return the project name like yours do.

Well, i have modified the data sent with this instruction:

let sanitizedData = data.map((item) => {
  delete item['project_name'];
})
  res.send(sanitizedData);

With this dirty trick is disappeared the second error

You can send a GET request to /api/issues/{projectname}
and filter the request by also passing along any field and
value as a URL query (ie. /Api/issues/{project}?Open=false).
You can pass one or more field / value pairs at once. (Test
timed out)

but not the first!!! Indeed, the (Test timed out) clause has disappeared from the first error.

I don’t know what to think anymore. What I would like to know is: what are the answers the system test expects to receive. In this way I proceed to “model” the data according to the requirements and we stop there.
It is exhausting having to chase what the system considers “errors” and instead are just different stylistic opinions.

Okay, to be honest i just passed this test like 6 hours ago. I found the FCC test but i have to look for it, please wait a minute.

Wait have you tried the devtools (console) in the FCC Test web? They give some error if you fail any tests.

Here you go, if you asked me where i get this. Some FCC Staff shared this in the forum.

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