#ben_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hello, can you provide me the full code of your Customer search API call? That does sound like it should work
No problem
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
Oh 'a' just an example, I used an Guid as user id
Gotcha, I will test this and get back to you
Thanks!
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?
I have tried to wait for 1 minute, and then it works!
There we go! It has been a bit since that tricked me. Glad we could figure that out
I guess our unit tests will need more time to run. XD