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] Cannot run "Serve a MobileNet image classifier on Kubernetes" doc #2328

Closed
2 tasks done
MortalHappiness opened this issue Aug 23, 2024 · 1 comment
Closed
2 tasks done
Labels
1.2.0 bug Something isn't working release-blocker

Comments

@MortalHappiness
Copy link
Member

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

Tested on Linux x86-64 machine.

Following the steps in this doc https://docs.ray.io/en/latest/cluster/kubernetes/examples/mobilenet-rayservice.html

The following error occurred when I execute kubectl port-forward and try to access the dashboard on localhost:8000

Unexpected error, traceback: �[36mray::ServeReplica:mobilenet:ImageClassifier.handle_request_streaming()�[39m (pid=266, ip=10.244.0.7)
  File "/home/ray/anaconda3/lib/python3.8/site-packages/ray/serve/_private/utils.py", line 165, in wrap_to_ray_error
    raise exception
  File "/home/ray/anaconda3/lib/python3.8/site-packages/ray/serve/_private/replica.py", line 895, in call_user_method
    result = await method_to_call(*request_args, **request_kwargs)
  File "/tmp/ray/session_2024-08-23_02-21-03_274153_14/runtime_resources/working_dir_files/https_github_com_ray-project_serve_config_examples_archive_b393e77bbd6aba0881e3d94c05f968f05a387b96/mobilenet/mobilenet.py", line 25, in __call__
    image_file = await request["image"].read()
  File "/home/ray/anaconda3/lib/python3.8/site-packages/starlette/datastructures.py", line 310, in __getitem__
    return self._dict[key]
KeyError: 'image'.

Reproduction script

Following the steps in the doc can reproduce this error.

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@MortalHappiness
Copy link
Member Author

Moved to ray-project/ray#47317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.2.0 bug Something isn't working release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants