Open Onotot opened 1 month ago
@Onotot thanks for the question, there should not be s repetition of status in the item. In terms of working through the book, I love that you are reading it. I am currently working on the third edition of the book. If you want to see it, you can click on the link below:
https://github.com/PacktPublishing/Rust-Web-Programming-3E/tree/main/chapter13/remote-logging
if you create a repo of your project and send me the link I can have a quick look over it to see where the issue could be.
if you create a repo of your project and send me the link I can have a quick look over it to see where the issue could be.
Thank you for your book, it shows good practical techniques. I cloned your version of the repository and this error happened again. Do I need to create my own version of the repository if it is similar to yours?
@Onotot ah if you've cloned by version of the repo then it's an error my side. I will look into this tonight
As a result of the query v1/item/get we get this response
{ "pending_items": [ { "title": "washing", "status": { "status": "PENDING" } } ], "done_items": [], "pending_item_count": 1, "done_item_count": 0 }
As a result, when testing Postman, we get an error when testing the 'status' fieldpm.test("Pending item has the correct status", function() { if (result["pending_items"][0]["status"] !== "PENDING") { throw new Error("status of the pending item is not 'pending'"); } })
This can be easily fixed, but I don't understand if there should be a repetition of the 'status' field or if there is an error somewhere.