Error Message: err code="112"

Been studying chapter 20 in preparation for BNR Advanced iOS class starting Sep-18.

Got to page 655 the app (so far) builds. When ran I get the following in the console:

<?xml version="1.0" encoding="utf-8" ?>

I have the following in FlickrAPI.swift:

enum Method: String {
case interestingPhotos = “flickr.interestingness.getList”
}

struct FlickrAPI {

fileprivate static let baseURLString = "https://api.flickr.com/services/rest"
fileprivate static let apiKey = "a6d819499131071f158fd740860a5a88"

This was copied and pasted from the iBooks edition.

Any clues?

Thanks muchly!!

Using Xcode 8.3.2

Could it be that the apiKey supplied is no longer valid?

~uplate

Annnnd I’m and idiot.

Turns out I had commented out the code with the baseParams array and the subsequent for loop, meaning the query items were not part of the URL sent to Flickr.

Now moving forward!!

~uplate