#nicelydone7

1 messages · Page 1 of 1 (latest)

dire etherBOT
queen scarab
#

hi! do you have more context like exact code you're using/JSON responses you're seeing?

#
$ curl https://api.stripe.com/v1/products?active=true -u sk_test_xxxxxxxxxxxxxx:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    82  100    82    0     0    203      0 --:--:-- --:--:-- --:--:--   203{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/products"
}
#

what is the request ID req_xxx from that call @pine oriole ?

#

add -vvvv if needed so you can see it in the response headers

#

@pine oriole post here please not in the main channel

pine oriole
#

Request-Id: req_3yfERFzHk0384A

#

also check this one
Request-Id: req_XCwc3BAa9EiYBj

#

the last one is returning 2 products, instead of 4

#

Request-Id: req_XCwc3BAa9EiYBj

queen scarab
#

it's because you're using an old API version

#

for it to work as you expect you need to pass type=service as a parameter too, or use a more recent API version; for historical reasons

pine oriole
#

can you type full url

pine oriole
#

is this because I have short keys?

#

on my new account keys are x3 longer

queen scarab
#

that's related to having an older Stripe account, which is related to using an old API version, but it's not the cause no, the cause is using the older API version

pine oriole
queen scarab
#

no it's not old

#

I can explain more about why type=service is needed but there's not really a good reason, it's just how the API used to work in the older version you use

#

are you unblocked, is it clear what you need to do?

pine oriole
#

y, thanks