You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I was running Mlflow in k8s as container builded with Dockerfile: #33 (comment)
And UI authentification works perfect.
But when I'm trying to use it as REST API - it always fails with strange problem. AUTH URL works, but after login it just redirect to main page with authentication button.
Code used to connect:
import mlflow
MLFLOW_TRACKING_USERNAME= "username"
MLFLOW_TRACKING_PASSWORD= "password"
MLFLOW_TRACKING_URI="http://mlflow.path"
mlflow.set_tracking_uri(uri=MLFLOW_TRACKING_URI)
mlflow.set_experiment("test_test_test")
with mlflow.start_run():
mlflow.log_param("loss_fn", "rmse")
mlflow.log_metric("loss_fn", 10)
And part of error:
mlflow.exceptions.MlflowException: API request to endpoint was successful but the response body was not in a valid JSON format. Response body: '<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Login</title>
<link rel="stylesheet" href="/oidc/static/style.css">
<link rel="shortcut icon" href="/oidc/static/favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
I was also tried to skip mlflow auth plugin and run it just with requests into url: mlflow.path/api/2.0/mlflow/users/get and got the same
Hello. I was running Mlflow in k8s as container builded with Dockerfile: #33 (comment)
And UI authentification works perfect.
But when I'm trying to use it as REST API - it always fails with strange problem. AUTH URL works, but after login it just redirect to main page with authentication button.
And part of error:
I was also tried to skip mlflow auth plugin and run it just with requests into url: mlflow.path/api/2.0/mlflow/users/get and got the same
Tested versions:
MLFlow 2.16.2 + 2.0.0 OIDC
MLFlow 2.17.0 + 2.0.2 OIDC
The text was updated successfully, but these errors were encountered: