#panther-85_api

1 messages ยท Page 1 of 1 (latest)

fallen crystalBOT
#

๐Ÿ‘‹ 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.

warm estuary
#

Hi! Can you share the Request ID for the request that failed/had the error?

inland beacon
#

Sure sorry for the late reply! You still there?

warm estuary
#

Am, yup. ๐Ÿ™‚

#

Can you share the Request ID from your dashboard?

inland beacon
#

Yep just trynna find it!

warm estuary
#

Awesome. ๐Ÿ™‚ Do you know where to look?

inland beacon
#

No sorry!๐Ÿ˜…

#

Found the input bundle -

inland beacon
#

On it!

fallen crystalBOT
inland beacon
#

Just got this error now...

#

Here is the input bundle

#

This is the Input bundle JSON

thin cedar
#

hi! i'm taking over for my colleague on this thread

inland beacon
#

Thanks man

#

You got the thread history?

thin cedar
#

yep! catching up now

inland beacon
#

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...

thin cedar
#

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?

inland beacon
#

Yeah we are, im taking over this project from another dev and it was just easier considering hes done 80% of it

thin cedar
#

i am a liar, it looks like i was able to create one via URL. 1 sec

inland beacon
#

lol, thanks mate! Appreciate it!

thin cedar
#

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

inland beacon
#

So this should work?

#

Yeah its only failing on the images array, so headers should be 100s

thin cedar
#

name is a required param so make sure you're including that too. but yeah it definitely belongs in the request body

inland beacon
#

Yeah the product name is in the query string

#

Lemme try

thin cedar
#

i don't think it should be in the query string? our docs have it in the request body

inland beacon
#

Just dont understand how its always fine generally expect when I add images

thin cedar
#

what are you using to call this? i don't recognize that interface

inland beacon
#

Is it possible for you to jump on a google meet for 5 mins?

thin cedar
#

sorry, we can't do syncronous calls here, i've got a lot of threads to juggle unfortunately

inland beacon
#

Ah okay no stress...

thin cedar
#

can you share a screenshot of the entire request as you're structuring it right now?

inland beacon
#

Sure

#

Here the headers...

#

The query string is just adding information into the metadata

thin cedar
#

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

inland beacon
#

Ah okay perfect! Thanks mate!