Error on Submission

I am experiencing an error when submitting the final lesson for Student expert cert. I have checked my tests in the GET final check method and everything checks out correct(All 28 tests are passing) but the error on the POST submit popping up.

error on submit

Final check test results

Tests being flagged as having issues in the submit method response

pm.test([get book by id] path is set to /books/:id, function () {
const pattern = /{{baseUrl}}/books/{{id}}/
const url = req3.request.url.raw || req3.request.url
pm.expect(url.trim()).to.match(pattern);
});

pm.test([checkout a book] path is set to /books/:id, function () {
const pattern = /{{baseUrl}}/books/{{id}}/
const url = req5.request.url.raw || req5.request.url
pm.expect(url.trim()).to.match(pattern);

pm.test([delete a book] path is set to /books/:id, function () {
const pattern = /{{baseUrl}}/books/{{id}}/
const url = req6.request.url.raw || req6.request.url
pm.expect(url.trim()).to.match(pattern);
});

You need to make your collection public and then share it so we can see the three requests that are failing.

On a side note, you are getting a 424 error on that submit. That is an unusual status code.

What do the instructions tell you in relation to submitting your collection?

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