I send GET request and receive error 500
def baseUrl = new URL(url) HttpURLConnection connection = (HttpURLConnection) baseUrl.openConnection();