Rest API login returns HTML

I’m trying to log in via Rest API to receive the authentication token.
image

But instead of JSON, I’m getting back a visually empty HTML page, irrespective of entered credentials, see below. Is something wrong with the way I send the login request?

<!DOCTYPE html>
<html>
<head>
    <title>Dremio</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="-1">
    <script type="text/javascript">
      window.dremioConfig = {
        serverEnvironment: "PRODUCTION",
        serverStatus: "OK",
        environment: "PRODUCTION",
        //..........................
        }
      };
    </script>
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    //..........................
</head>
<body>
<div id="root">
</div>
<script type="text/javascript" src="/vendor.66409c57633612dd4357.js"></script>
<script type="text/javascript" src="/bundle.66409c57633612dd4357.js"></script>
</body>
</html>

https://docs.dremio.com/rest-api/overview.html#authentication
From a quick glance, looks like your URL is wrong. It should be apiv2, not api2

You were right, thanks!

1 Like