#arnotixe-customer-search

1 messages · Page 1 of 1 (latest)

narrow cairn
#

Let me have a look

#

okay I'm confused by your ask. I can't reproduce and also why the -name: null since you're explicitly looking for a specific name?

half hearth
#

yeah that was just to be extra sure heh

#

OK I tested search with my own dev account now, and I think it may be the client is running and outdated version of the API… Cause it doesn't reproduce on my dev setup

narrow cairn
#

there isn't really an "old version" here, Search is quite new and nothing has changed there

half hearth
#

Don't think there's any way of querying the api of its version, right?

#

name returns null

#

(but only on client's setup with unknown API version. My working one is on version 2022-08-01 )

narrow cairn
#

hum I can't repro and I tried

#

can you share the customer id cus_123 so that I can have a look?

half hearth
#

yea for example cus_LqwfTyO8TzSD9z

narrow cairn
#

huh I wonder if it's because it has a metadata key named name

#

Let me try and repro

#

hmmm no doesn't repro on my end with that

half hearth
#

yea I tried messing about with that too, modifying the metadata name to see if it would actually match on that, but… it still returns entries with name= null

#

Maybe I'll try removing the metadata altogether

narrow cairn
#

yeah you have to wait long enough as our indexing for the Search API isn't real time

#

but still I can't repro

half hearth
#

ok here I took out the metadata from a customer and searched after a little while. Still comes back with name:null :puzzled_look: 😛

#

cus_LqvKoSQ17h7ADQ

#

Anyways, I'll try and add some extra checks to the backend, all I really try is to search and see if a customer with a matching name+mail already exists, and if so I'll stop the user from creating new customers 😄 totally doable 👍

narrow cairn
#

yeah there's definitely something weird here. Will take me a while to debug but I'll flag internally if there's a bug at least

#

@half hearth can you search again with a different name? Like does it return?

half hearth
#

yeah, trying different names it does return 0 hits and so on. Some weird caching issue maybe? 🤔

{
    "data": [],
    "has_more": false,
    "next_page": null,
    "url": "/v1/customers/search"
}```e
narrow cairn
#

yeah it really feels like it