#panther-85_api
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/1351596695447801856
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- panther-85_api, 20 hours ago, 18 messages
- panther-85_api, 4 days ago, 18 messages
Hi! Can you share the Request ID for the request that failed/had the error?
Sure sorry for the late reply! You still there?
Yep just trynna find it!
Awesome. ๐ Do you know where to look?
No sorry!๐
Found the input bundle -
[
{
"qs": [
{
"key": "name",
"value": "Ford Fusion"
},
{
"key": "description",
"value": "Test"
},
{
"key": "images",
"value": "[https://hart-rentals-llc.hartcarrentals.com/public/fleets/images/vdk5llib-hlal-qt8g-1mwd-voeymilixpqc/vehicle-class]"
}
],
"url": "/v1/products",
"body": null,
"method": "POST",
"headers": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
]
}
]
On it!
Shoot, I cant find it I think its on another account but can you see why if I enter this - {
"images": ["https://media.licdn.com/dms/image/v2/C560BAQE0z0OYV9AQhw/company-logo_200_200/company-logo_200_200/0/1673655124156?e=2147483647&v=beta&t=ola6TRZcIGTzVeR61rhSpAYV2-8H_ouYNzApZZDQ7Wo"]
} It says invalid array?
Just got this error now...
Here is the input bundle
This is the Input bundle JSON
hi! i'm taking over for my colleague on this thread
yep! catching up now
Cool, I dont think images can go in the Query string, from what I understand I it goes in the body but it just keeps failing...
i'm not sure if we support adding images via URL, let me double check something....
also are you calling this via CURLing the URL directly? is there a reason you're not using one of our SDKs?
Yeah we are, im taking over this project from another dev and it was just easier considering hes done 80% of it
i am a liar, it looks like i was able to create one via URL. 1 sec
lol, thanks mate! Appreciate it!
ok cool, i'm just using postman to send this, and here's what my request body looked like (attached image). and then if you restructure that into JSON it would look like this:
images: [
"https://media.licdn.com/dms/image/v2/C560BAQE0z0OYV9AQhw/company-logo_200_200/company-logo_200_200/0/1673655124156?e=2147483647&v=beta&t=ola6TRZcIGTzVeR61rhSpAYV2-8H_ouYNzApZZDQ7Wo",
],
name: "test product",
}```
if you're still having issues you should look at the headers of the request you're making, the request ID is in the Request-Id header
So this should work?
Yeah its only failing on the images array, so headers should be 100s
name is a required param so make sure you're including that too. but yeah it definitely belongs in the request body
idk if you've looked at the reference doc but probably worth a quick glance if you haven't
https://docs.stripe.com/api/products/create
i don't think it should be in the query string? our docs have it in the request body
what are you using to call this? i don't recognize that interface
sorry, we can't do syncronous calls here, i've got a lot of threads to juggle unfortunately
Ah okay no stress...
can you share a screenshot of the entire request as you're structuring it right now?
Sure
Here the headers...
The query string is just adding information into the metadata
yeah ultimately i think you need to figure out how to structure a request like the one below in make:
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: [redacted]' \
--data-urlencode 'name=test product' \
--data-urlencode 'images%5B0%5D=https://media.licdn.com/dms/image/v2/C560BAQE0z0OYV9AQhw/company-logo_200_200/company-logo_200_200/0/1673655124156?e=2147483647&v=beta&t=ola6TRZcIGTzVeR61rhSpAYV2-8H_ouYNzApZZDQ7Wo'```
i want to emphasize that i don't think those query strings are doing anything, and you should have the name in the request body
Ah okay perfect! Thanks mate!