Getting an error when making a api call [Solved]

that is so insane. I am using bufferedreader and that class doesn’t have a method that reads the whole thing. And it doesn’t even have a method that checks if it has more lines (something like hasNext(…) …) so I can run a loop and store all of it. What should I do? Plz help!