While this test shows it passes in glitch, I get an error when I run it on FCC. error “running tests
You should test for ‘res.type’ to be ‘application/json’
You should test for ‘res.body.name’ to be ‘Giovanni’
You should test for ‘res.body.surname’ to be ‘da Verrazzano’
tests completed”
Is anyone else having this issue? Please help.
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36.
Really you shouldn’t have to head over to the issue tracker for things like this. The good news is that it’s been identified and will (eventually) get fixed.
Hi @LudwigJedde. Your code looks like it should pass to me . Is it definitely failing the “You should test for ‘res.body.surname’ to be ‘da Verrazzano’” test? Or maybe one of the other ones? Are you able to provide a link to your Glitch project?
Hi, Monksy. Here’s the final solution. I was missing two braces and parentheses at the end of the code. Watch out for the “” and the ’ '. Thank you for your answer, monksy.