# "Error in Node vec-0: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.\\", 'type': 'invalid\_request\_error', 'param': None, 'code': None}}"

**URL:** <https://community.openai.com/t/error-in-node-vec-0-error-code-400-error-message-input-is-invalid-please-check-the-api-reference-https-platform-openai-com-docs-api-reference-type-invalid-request-error-param-none-code-none/659606>\
**Category:** Bugs\
**Created:** [February 29, 2024, 2:09am UTC](https://community.openai.com/t/error-in-node-vec-0-error-code-400-error-message-input-is-invalid-please-check-the-api-reference-https-platform-openai-com-docs-api-reference-type-invalid-request-error-param-none-code-none/659606 "2024-02-29T02:09:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sluchitha](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/sluchitha/32/322510_2.png) [@sluchitha](https://community.openai.com/u/sluchitha)\
**Post date:** [February 29, 2024, 2:09am UTC](https://community.openai.com/t/error-in-node-vec-0-error-code-400-error-message-input-is-invalid-please-check-the-api-reference-https-platform-openai-com-docs-api-reference-type-invalid-request-error-param-none-code-none/659606/1 "2024-02-29T02:09:53Z")

</div>

how do i fix this error that comes up in vector store? “Error in Node **vec-0** : Error code: 400 - {‘error’: {‘message’: “‘$.input’ is invalid. Please check the API reference: [[https://platform.openai.com/docs/api-reference.\](https://platform.openai.com/docs/api-reference.%5C)]([https://platform.openai.com/docs/api-reference.\](https://platform.openai.com/docs/api-reference.%5C))”, ‘type’: ‘invalid\_request\_error’, ‘param’: None, ‘code’: None}}”

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/766292_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [February 29, 2024, 2:50am UTC](https://community.openai.com/t/error-in-node-vec-0-error-code-400-error-message-input-is-invalid-please-check-the-api-reference-https-platform-openai-com-docs-api-reference-type-invalid-request-error-param-none-code-none/659606/2 "2024-02-29T02:50:15Z")

</div>

> [@sluchitha](#):
>
> Error in Node **vec-0**

This question would be better if there was a whole bunch more documentation of what you are doing.

A search for the quote brings up something older called “Botpress”…

The validation of input methods to embeddings API calls seems to have been tightened up, either in the parameters, or the json layout.

Here’s a case where I took “400” to working with some changes:

> [@Getting 400 response with already working code](https://community.openai.com/t/getting-400-response-with-already-working-code/509212/6):
>
> There is no “input\_list” being defined in this snippet. I gave you one, and improved import openai client = openai.Client() with open("mytext.txt", "r", encoding="utf-8") as file: text\_string = file.read() # read file, split into paragraph chunks, index stripped\_chunks = [part.strip() for part in text\_string.split("\n\n") if part.strip()] input\_list = [f"[{index + 1}] {part}" for index, part in enumerate(stripped\_chunks)] input\_list = [x.replace("\n", " ").replace(' ', ' ') for x in in…

---

<div class="post-metadata">

**Author:** ![richard.hipsh](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/richard.hipsh/32/400186_2.png) [@richard.hipsh](https://community.openai.com/u/richard.hipsh)\
**Post date:** [June 13, 2024, 10:50pm UTC](https://community.openai.com/t/error-in-node-vec-0-error-code-400-error-message-input-is-invalid-please-check-the-api-reference-https-platform-openai-com-docs-api-reference-type-invalid-request-error-param-none-code-none/659606/3 "2024-06-13T22:50:58Z")

</div>

Neo4j is having the same error, and I am as well locally. There has been a change in the library that is not compatible.
