NEW: Subscribe to Hacking with Swift+ and accelerate your learning! >>
Forums > Books
When I run the code to retreive the Taylor Swift song list in the initial part of the chapter what I see in the console is Fetch error: Unknown error and no data is retrieved!
I have checked the code over and over again and I've checked the URL. All is correct as far as I can tell, but just the error.
Have others had any issues? Does yours work?
And yes, .resume() is in the code for the URLSession!
Any help gratefully appreciated.
Hey, would you mind uploading your code to Github and posting the link so we can check it out? Thanks
Thanks very much for your offer. I've never loaded anything onto Github so I'll have to work out how to do it first - a useful excersise in itself!
I continued with the rest of the chapter and coded the rest of it which makes the URL request and displays the returned JSON and that all just works fine.
I will see about uploading the code - hold on to your hat. :-)
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Not logged in
Link copied to your pasteboard.