Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:[Model Monitoring] 400 Bad request error http://localhost:30070/api/v1/build/function #3799

Open
2 tasks done
satyaraj479 opened this issue Jun 21, 2023 · 1 comment

Comments

@satyaraj479
Copy link

MLRun Version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of MLRun CE.

Reproducible Example

https://github.com/mlrun/demos/blob/master/tutorials/05-model-monitoring.ipynb

Issue Description

Import the serving function from the Function Hub and mount filesystem

serving_fn = mlrun.import_function('hub://v2_model_server')

Add the model to the serving function's routing spec

serving_fn.add_model(model_name, model_path=model_artifact.uri)

Enable model monitoring

serving_fn.set_tracking()
mlrun.deploy_function(serving_fn)
Starting remote function deploy

2023-06-19 11:29:06,680 [error] error submitting build task: 400 Client Error: Bad Request for url: http://localhost:30070/api/v1/build/function: details: {'reason': {'reason': 'runtime error: failed creating tutorial-satyaraj-serving'}}


HTTPError Traceback (most recent call last)
~/anaconda3/envs/dev-task-mlrun/lib/python3.8/site-packages/mlrun/errors.py in raise_for_status(response, message)
75 try:
---> 76 response.raise_for_status()
77 except requests.HTTPError as exc:

~/anaconda3/envs/dev-task-mlrun/lib/python3.8/site-packages/requests/models.py in raise_for_status(self)
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
1022

HTTPError: 400 Client Error: Bad Request for url: http://localhost:30070/api/v1/build/function

Expected Behavior

2023-03-12 17:02:38,651 [info] Starting remote function deploy
2023-03-12 17:02:40 (info) Deploying function
2023-03-12 17:02:40 (info) Building
2023-03-12 17:02:40 (info) Staging files and preparing base images
2023-03-12 17:02:40 (info) Building processor image
2023-03-12 17:03:40 (info) Build complete
2023-03-12 17:03:51 (info) Function deploy complete
2023-03-12 17:03:52,969 [info] successfully deployed function: {'internal_invocation_urls': ['nuclio-tutorial-yonis-serving.default-tenant.svc.cluster.local:8080'], 'external_invocation_urls': ['tutorial-yonis-serving-tutorial-yonis.default-tenant.app.vmdev30.lab.iguazeng.com/']}
DeployStatus(state=ready, outputs={'endpoint': 'http://tutorial-yonis-serving-tutorial-yonis.default-tenant.app.vmdev30.lab.iguazeng.com/', 'name': 'tutorial-yonis-serving'})

Installation OS

Mac

Installation Method

Kubernetes

Python Version

3.8.8

MLRun Version

1.2.1

Additional Information

Please help as I am just executing the demo notebook as is.

@harishgawade1999
Copy link

I'm also getting the same error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants