aibrix icon indicating copy to clipboard operation
aibrix copied to clipboard

Error: Invalid character 'u' looking for beginning of value

Open vivekrsintc opened this issue 9 months ago • 6 comments

🐛 Describe the bug

We deployed latest stable version of AIBRIX and the following error is coming

curl -v http://localhost:8888/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "deepseek-r1-distill-llama-8b", "messages": [{"role": "user", "conten t": "Say this is a test!"}], "temperature": 0.7}

"error":{"code":500,"message":"invalid character 'u' looking for beginning of value"

Steps to Reproduce

  1. Deploy default AIBRIX
  2. Deploy the Deepseek v1 Llama 8B model on CPU
  3. Port-foward the envoygateway
  4. curl -v http://localhost:8888/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "deepseek-r1-distill-llama-8b", "messages": [{"role": "user", "conten t": "Say this is a test!"}], "temperature": 0.7}

You will end up with the above error

Expected behavior

Expected behavior proper result to come

Environment

  • AIBrix latest

vivekrsintc avatar Mar 13 '25 09:03 vivekrsintc

@vivekrsintc Thanks for reporting the issue. We've fixed a few issues and now it exposes the accurate messages. I think only one case now will return such error which is missing service for the deployment. Could you help check the pod status and whether you created the service?

Jeffwan avatar Mar 17 '25 06:03 Jeffwan

My POD Status were fine. Gateway plugin service binded properly with Gateway POD IP. But even though we are getting this error

Image

vivekrsintc avatar Mar 17 '25 09:03 vivekrsintc

Image

vivekrsintc avatar Mar 17 '25 09:03 vivekrsintc

@vivekrsintc Can you share the output of kubectl describe httproute -A and kubectl describe envoyextensionpolicy -A

varungup90 avatar Mar 17 '25 20:03 varungup90

They both look good.

I could not find you on aibrix slack channel, can you ping me on slack.

varungup90 avatar Mar 19 '25 04:03 varungup90

@varungup90, how can I join the Aibrix Slack workspace? (Here is my email: [email protected]; I'd be grateful for an invitation or something similar.)

ModiIntel avatar Apr 03 '25 13:04 ModiIntel

I faced same error when i call v1/models But when i call v1/chat/compilations its work i use 0.2.1v stable so how to fix this can anyone help me

MohamedHAlzhrani avatar Apr 14 '25 11:04 MohamedHAlzhrani

@MohamedHAlzhrani could you try v0.3.0 instead? This issue has been resolved.

Jeffwan avatar May 23 '25 21:05 Jeffwan

I will close this task, please create a new one for current release v0.3.0.

varungup90 avatar May 29 '25 18:05 varungup90