The URL for the next page was incorrect and we always got the same page, therefore it got trapped in an infinite loop.