#ben_unexpected

1 messages ¡ Page 1 of 1 (latest)

lean cedarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1217569639681363998

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

neat shuttleBOT
forest bone
#

Hello, can you provide me the full code of your Customer search API call? That does sound like it should work

short jay
#

No problem

forest bone
#

Have you tried this with longer IDs than a? I see that our substring match operator requires a minimum of 3 characters and will silent fail (🤷). You aren't using that operator but I am wondering if something similar is happening

short jay
#

Oh 'a' just an example, I used an Guid as user id

neat shuttleBOT
forest bone
#

Gotcha, I will test this and get back to you

short jay
#

Thanks!

forest bone
#

Ah, it looks like our query langauge expects double quotes here

#

query: 'metadata["user_id"]:"a"' worked for me

#

I will file feedback about this stuff failing silently. It would be way more helpful if this failed with an informative error

#

Wait, nevermind, single quotes are working for me now. My apologies, I think I was running the query before the customer was indexed properly

#

Oh that actually may be the issue. This search API call takes ~ 1 minute to be able to find a customer with a search. If you make that call again now does it return the proper customer?

#

And if not can you send me the customer ID (cus_123) that you are trying to find and request ID (req_) from a time you made this search call?

short jay
#

I have tried to wait for 1 minute, and then it works!

forest bone
#

There we go! It has been a bit since that tricked me. Glad we could figure that out

short jay
#

I guess our unit tests will need more time to run. XD