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 Write a Basic Fetch Request

console.log(data.message) at 6:10 in the video doesn't work for me.

I get the error message: "Uncaught (in promise) TypeError: Cannot read property 'message' of undefined.

Can you post your code?

1 Answer

same issue with me. What is the solution?

Unchecked runtime.lastError: The message port closed before a response was received. port-80-wtporhyxup.treehouse-app.com/:1

app.js:8 Fetch finished loading: GET "https://dog.ceo/api/breeds/image/random". (anonymous) @ app.js:8