#m1dnight - cli

1 messages ยท Page 1 of 1 (latest)

wraith vortex
#

๐Ÿ‘‹ Hi there, Happy to help!

glad dock
#

Hi there! ๐Ÿ™‚

#

So there is data there. I assume that the path expression doesn't work or something.

#

I have also done a sanity check with the command stripe customers search --query="metadata['auth0id']:'supersecret'" to make sure that the response contains a user.

#

I also tried enabling debugging with the --log-level debug flag , but that does not output the intermediate values of the fixtures, so that's no help.

wraith vortex
#

Thanks for the details
Just give me a couple of minutes while I analyze your request

glad dock
#

In the meanwhile, I've been trying several combinations of data, and I noticed that putting data.[0].[0].[0] or no matter how many times" .[0]", it still returns the entire list in the error I have linked in the above pastie.org link.

#

Thanks for taking your time, btw. Appreciate it.

wraith vortex
glad dock
#

It was an example. Let me send you the entire fixture, just a second.

#

The secret value is redacted, but I guess you can see that on your end anyway. Let me know if you need the actual value.

weak grotto
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

glad dock
#

Hi! No problem. I'm trying to figure out in the meanwhile too.

weak grotto
#

I think this is wrong

#

/v1/customers/${find_the_customer:data.[0.id]|Unknown Person}

#

it should probably be something like
/v1/customers/${find_the_customer:data:0:id}

glad dock
#

oh wait what

weak grotto
#

let me try to test it out

glad dock
#

oh jeez, that actually works

#

So [n] is to access the nth field in an object, and not a list?

weak grotto
#

I think that this is not supported

#

list access

glad dock
#

Hrm, that's odd. But it actually works what you said, so I'm going with that for now.

#

Thanks for taking your time, I really appreciate it.

glad dock
#

one sec

weak grotto
#

I tried it and it didn't work so it's a bit odd

glad dock
#

It did, actually. One last sanity check.

#

yeah, this just worked.

glad dock
#

Again, many thanks for your support. Much appreciated.