Replies: 1 comment
-
Hello @Columboom! 👋 I'm here to help you solve bugs, answer questions, and become a contributor while you wait for a human maintainer. Let's tackle this issue together! To resolve the
If all configurations are correct and the error persists, consider checking the Azure portal for any additional settings or restrictions that might affect the API requests. Additionally, ensure that your Azure subscription is active and has the necessary permissions for the operations you're attempting. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I tried to use AzureAISearchVectorStore to embedding and store my docs in an index. I used azureADTokenProvider instead of apikey to authenticate. And I modified azureOpenAIBasePath to make sure the request url was correct.
However, BadRequestError: 400 status code (no body) occurred when I ran the code.
I wonder where the problem is and how I can solve it.
Appreciate it if you can help me out.
System Info
BadRequestError: 400 status code (no body)
at APIError.generate (file:///c:/xxx/node_modules/openai/error.mjs:41:20)
at AzureOpenAI.makeStatusError (file:///c:/xxx/node_modules/openai/core.mjs:295:25)
at AzureOpenAI.makeRequest (file:///c:/xxx/node_modules/openai/core.mjs:339:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///c:/work/code/cloudrag/node_modules/@langchain/openai/dist/azure/embeddings.js:116:29
at async RetryOperation._fn (c:\xxx\node_modules\p-retry\index.js:50:12) {
status: 400,
headers: {
'content-length': '73',
'content-type': 'application/json',
date: 'Wed, 07 May 2025 08:26:40 GMT',
'request-id': 'f27f6674-be38-4071-9e03-71f4f225d4c7',
server: 'istio-envoy',
'x-envoy-upstream-service-time': '3'
},
request_id: undefined,
error: undefined,
code: undefined,
param: undefined,
type: undefined,
attemptNumber: 1,
retriesLeft: 6
}
Beta Was this translation helpful? Give feedback.
All reactions