REST API calls being closed with code 80