mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

Issue with NodeJs OSS version

Open anmol098 opened this issue 3 months ago • 10 comments

🐛 Describe the bug

There are several issues with NodeJs oss version of mem0

  1. when using Supabase getting below error everytime i followed exactly same steps as mentioned in supabase provider docs of mem0
Error getting user ID: {
  code: 'PGRST205',
  details: null,
  hint: "Perhaps you meant the table 'public.memories'",
 message: "Could not find the table 'public.memory_migrations' in the schema cache"
}
  1. When using Redis coud not configure the redis
Error creating index cannot read properties of undefined reading toString
  1. When using pgvector Documentation suggests ts can also use pg vector but when adding config the vector is not working. i digged into the code base there is pgvector class but in Factory method pgvector is not considered https://github.com/mem0ai/mem0/blob/88ae952483aa85811d28c47722b123d795cec68a/mem0-ts/src/oss/src/utils/factory.ts#L84 https://github.com/mem0ai/mem0/blob/88ae952483aa85811d28c47722b123d795cec68a/mem0-ts/src/oss/src/utils/factory.ts#L99
Unsupported vector store provider:  pgvector

anmol098 avatar Sep 22 '25 08:09 anmol098

For cloudflare worker getting below error

Error getting user ID: Error: 400 {"result":null,"success":false,"errors":[{"code":3003,"message":"vectorize.index.invalid_config - Dimensions must be in range: [32, 1536]"}],"messages":[]}

anmol098 avatar Sep 22 '25 12:09 anmol098

Hey @anmol098 we don't have support for the pgvector on the Node SDK. Sorry for the trouble we will definitely update the docs.

parshvadaftari avatar Sep 24 '25 14:09 parshvadaftari

@parshvadaftari what about the other Providers for Node SDK ? seems like except Memory all other nodeJs providers are breaking

anmol098 avatar Sep 24 '25 17:09 anmol098

Hey @anmol098 Can you share me code snippet for which you're using? Really sorry for the trouble caused.

parshvadaftari avatar Sep 24 '25 18:09 parshvadaftari

Hi @parshvadaftari i have created a small example repo which you run and replicate the issue https://github.com/anmol098/mem0-test

anmol098 avatar Sep 25 '25 08:09 anmol098

Hey @anmol098 thanks for sharing the repo! I’ll check out the issue and get back to you here.

parshvadaftari avatar Sep 25 '25 16:09 parshvadaftari

@parshvadaftari were you able to replicate the issue ? any ETA ?

anmol098 avatar Sep 30 '25 10:09 anmol098

Hey @anmol098 really sorry for the trouble, there are few things which pushes this particular issue back. But will be resolved by end of this week.

parshvadaftari avatar Sep 30 '25 22:09 parshvadaftari

Hey @parshvadaftari, I would love to work on this issue. Could you please assign this to me?

Vedant817 avatar Oct 16 '25 17:10 Vedant817

Any updates on this ?

satvic-jurin avatar Oct 29 '25 15:10 satvic-jurin