Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSeokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 PointsTwo astronauts have the same names on Wikipedia. The XHR prints error.
The method from the lesson only uses name property to call json files of astronauts from Wiki. (I don't know if they are other ways to call API) It causes error because there are some other people have the same name of two astronauts, Andrew Morgan, Aleksandr Skvortsov (present, 25.12.2019). I assume that not only me, but many treehouse students might have issues because of it. Please fix it as soon as possible. Thanks and happy Christmas!
1 Answer
Gemz Nunn
16,296 PointsI noticed this as well. It looks like the API is searching for "Andrew Morgan" on Wikipedia and there are several people of that name, which suggests that the fault lies with Open Notify rather than Treehouse. The code the works for the rest of the astronauts; the API is just not being specific with its search terms. It should be searching for Andrew R. Morgan.
If anything, this demonstrates how fetching data can have its drawbacks!