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 Asynchronous Programming with JavaScript Asynchronous JavaScript with Callbacks Implement a Callback

Louis Maxwell
Louis Maxwell
16,714 Points

The wikiURL is no longer valid at this time.

Just wanted inform the team that the wikiUrl returns a status code of 404, at this current time.

5 Answers

Louis Maxwell
Louis Maxwell
16,714 Points

I'm simply copying and pasting the wikiURL into my browser and receiving this

{ type: "https://mediawiki.org/wiki/HyperSwitch/errors/not_found", title: "Not found.", method: "get", uri: "/en.wikipedia.org/v1/page/summary/" }

I copied the link from the video's workspace

const wikiUrl = 'https://en.wikipedia.org/api/rest_v1/page/summary/';

Is it different somewhere else?

Richard Preske
PLUS
Richard Preske
Courses Plus Student 4,356 Points

This is what I get in my browser when pasting the link from the video. Similar issue as Louis: {"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found","title":"Not found.","method":"get","uri":"/en.wikipedia.org/v1/page/summary/"}

However, I get two astronauts picture and information to show up only and the error 404 in the console.

The console says Failed to load resource: the server responded with a status of 404 ()

Henry Blandon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Henry Blandon
Full Stack JavaScript Techdegree Graduate 21,521 Points

Louis Maxwell, the link is not complete, that is why in the event listeners using map method the names are added one by one to the linked . For example if you want just to copy and pasted in the browser you need to add the name at the end of the link, like this: https://en.wikipedia.org/api/rest_v1/page/summary/Kathleen_Rubins

I was able to load the first astronaut Christina Koch by pasting directly into my browser. Can you post your code? Or better yet a snapshot if you are using a workspace?