I am getting 500 when I try and insert a

I am getting 500 when I try and insert a new vector record: Error: VECTOR_INSERT_ERROR: Status + 500
4 Replies
garvitg
garvitg3mo ago
Hey @Stupefystar. Thank you for reporting this issue. I can see a few connection errors between the Vectorize service and our storage over the last couple of days which may have caused some 500s, but these seem to be intermittent in nature. Are you getting the 500s consistently, or is there any other kind of a usage pattern that seems to be increasing the error rate you are receiving? Feel free to share some details about your account and Vectorize index in this thread or over DM, and we can look into errors for that specific index.
Stupefystar
StupefystarOP2mo ago
Hey just tried again and failed with the same error code This is mutating an existing vector record with the upsert method I was trying to add in 7 new products to the database, and the database itself hadn't been touched in a week or so. It's unlikely to be a usage issue.
[cause]: Error: Status 500
at VectorizeIndexImpl._send (cloudflare-internal:vectorize-api:182:28)
at async VectorizeIndexImpl.upsert (cloudflare-internal:vectorize-api:119:21)
at async UpdateVectors.run
[cause]: Error: Status 500
at VectorizeIndexImpl._send (cloudflare-internal:vectorize-api:182:28)
at async VectorizeIndexImpl.upsert (cloudflare-internal:vectorize-api:119:21)
at async UpdateVectors.run
@garvitg My account id is b397a91b6dcecff90cb5bbc1743d7833 and it's theres only one vector on the account
garvitg
garvitg2mo ago
Thank you for sharing the account id! I am assuming the Vectorize index you are sending requests to is "lego-products" since that is the only index active for your account. Over the last 7 days, our logs show a total of 38 successful query requests and 1 successful upsert request. Unfortunately, I do not see any errors for your account in our logs. Maybe something is going wrong before your service reaches Vectorize, and I can help look into that? Could you share the code that you're using to upsert vectors into Vectorize in this thread or over DM? I looked a bit deeper, and I can three 502s in the last 7 days in a service that proxies requests to Vectorize. The requests seem to be timing out before they reach the Vectorize service. Let me see if I can tweak some of these settings. We are also working on optimizing the upsert flow and to bypass the proxy-service in the coming weeks. So hopefully that would settle this issue once-and-for-all.
Stupefystar
StupefystarOP2mo ago
I won’t be able to test for a few days but when I do try I’ll report back I am no longer getting the issues. Thanks for whatever the fix was @garvit

Did you find this page helpful?