Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Asynchronous Programming with JavaScript Understanding Promises Handle Multiple Promises with Promise.all

wikiUrl api link is not working

https://en.wikipedia.org/api/rest_v1/page/summary/ -- this link results in:

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found","title":"Not found.","method":"get","detail":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot GET /en.wikipedia.org/v1/page/summary/</pre>\n</body>\n</html>\n","uri":"/en.wikipedia.org/v1/page/summary/"}

So all my astronaut entries take the else branch (Results unavailable)...

1 Answer

Lee Vaughn
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Lee Vaughn
Treehouse Teacher

Hi Daniel Ahn!

We can't really talk specifics without being able to see your code but the URL you are linking above is only part of what you need to get data from the API. You will want to add the astronaut name to the end so that what you are searching for is defined.