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 trial

APIs

Mary Pienzi
seal-mask
.a{fill-rule:evenodd;}techdegree
Mary Pienzi
Full Stack JavaScript Techdegree Student 7,036 Points

Unit 5, Asynchonous programming with Javascript

My AJAX request is returning 5 items, but only 3 are showing on screen. After searching through the returned data, I've concluded that there is an issue with one of the Russian Astronaut names; Anatoly Ivanishin, or Anatoli Ivanishin with an "i" at the end of the first name. Also Chris Cassidy aka, Christopher Cassidy does not display.

How do I resolves these problems ? Can I resolves these problems?

1 Answer

Steven Parker
Steven Parker
231,236 Points

This issue is due to two 3rd-party API's having a disagreement about spelling. :see_no_evil: Code that would handle this kind of thing in a generic way would be rather complex.

But if you don't mind applying a temporary (and potentially brittle) fix for these specific cases, see the example posted in answer to this other question