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 trialJason Berteotti
12,352 PointsMy photos are not displaying, no errors in the console.
I have checked the code against the finished code, and against what is on screen (the js and html). I have no errors on my console. If I put a console.log(photosHTML) at the end of the callback, it returns: <ul></ul> I am at a loss for what I have done incorrectly. https://teamtreehouse.com/workspaces/11701382#
3 Answers
Paul Chin Jr.
7,291 PointsI'm getting the same thing. It's creating an empty <ul></ul>. When I traced back the network tab in the developer console, I see a 200 OK "Request URL:http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=jQuery111000070278828497976065_1447036375987&tags=Moose&format=json&_=1447036375989" but when you go to "http://www.flickr.com/photos/tags/moose/", it says "There isn't anything available to you tagged with "moose"."
Using Flickr itself doesn't seem like any of the tags work from their own search. https://www.flickr.com/photos/tags/australia/ says there are no photos.
Flickr probably changed something recently and this api no longer works like intended.
Jason Berteotti
12,352 PointsThat is the best conclusion I came to as well... the problem seems to be with Flickr. In the project following this, a blank search provides random pictures while a search with anything typed in brings no results.
Sandro Würmli
15,353 PointsMaybe a typo: scr="" instead of src="" on an img tag
mrbrutus
8,047 PointsNo, it's definitely src="" W3C confirmed: http://www.w3schools.com/html/html_images.asp
I'm with everyone else on here, this is a Flickr problem. I hope we won't need API keys.
Jason Berteotti
12,352 PointsJason Berteotti
12,352 PointsObject {title: "Recent Uploads tagged cat", link: "http://www.flickr.com/photos/tags/cat/", description: "", modified: "1970-01-01T00:00:00Z", generator: "http://www.flickr.com/"…}description: ""generator: "http://www.flickr.com/"items: Array[0]length: 0_proto: Array[0]link: "http://www.flickr.com/photos/tags/cat/"modified: "1970-01-01T00:00:00Z"title: "Recent Uploads tagged cat"proto_: Object
This almost looks like it is suggesting there are no photos of cats on flickr?