Hi, I am on the lesson to Make a Request in using APIs with Ruby.
When I enter the below code I get:
"Oops, try again. It looks like you didn’t print anything to the console."
In the console I see an ASCII cat sandwiched by the words
"Unknown Error: " and “RESULT nil”
Can anyone see what I’m doing wrong?
Thank you in advance!
require 'open-uri' # Open http://placekitten.com/ for reading on line 4! kittens = open('http://placekitten.com/') body = kittens.read[559, 441] # Add your puts statement below! puts body