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

JavaScript

asyn-await

my code is just like the teachers code but it shows only the first astronauts instead of all the astronauts .. help solve it . the workspace link is https://w.trhou.se/n26vxe1o0s; below is the error it is showing in the console;

async-await.js:8 Fetch finished loading: GET "http://api.open-notify.org/astros.json". allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:12 Fetch finished loading: GET "https://en.wikipedia.org/api/rest_v1/page/summary/Ivan%20Vagner". (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:12 Fetch finished loading: GET "https://en.wikipedia.org/api/rest_v1/page/summary/Doug%20Hurley". (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:12 GET https://en.wikipedia.org/api/rest_v1/page/summary/Anatoly%20Ivanishin 404 (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:12 Fetch finished loading: GET "https://en.wikipedia.org/api/rest_v1/page/summary/Chris%20Cassidy". (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:25 Uncaught (in promise) TypeError: Cannot read property 'source' of undefined at async-await.js:25 at Array.map (<anonymous>) at generateHTML (async-await.js:21) at HTMLButtonElement.<anonymous> (async-await.js:37) (anonymous) @ async-await.js:25 generateHTML @ async-await.js:21 (anonymous) @ async-await.js:37 async function (async) (anonymous) @ async-await.js:36 async-await.js:12 Fetch finished loading: GET "https://en.wikipedia.org/api/rest_v1/page/summary/Bob%20Behnken". (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36 async-await.js:12 Fetch failed loading: GET "https://en.wikipedia.org/api/rest_v1/page/summary/Anatoly%20Ivanishin". (anonymous) @ async-await.js:12 allData @ async-await.js:10 async function (async) allData @ async-await.js:8 (anonymous) @ async-await.js:36