Not getting a response from printful api using api connector

I am trying to use bubble api connector to use printful’s api to generate product mockups.

Here is the printful api doc.
https://www.printful.com/docs/generator

The process flow for this is

  1. Upload an images to generate a “task_key” via POST
  2. Retrieve GET response using the generated task_key parameter from step 1

On my bubble app, I get the step 1 successfully done but I dont understand why step 2 isnt giving me any response. I have tried every method and all failed.

Can someone please help me out ?

Step 1 Upload and image

Step 2
I get the task_key from step 1’s result stored on custom state

Here clearly shows task key is generated.

Step 3 I try to get response from this parameter through API action (I tried the data also)

But unfortunately, I get an empty response.

What am I doing wrong here?

Anybody who wants to try it out, here is the auth process

You have to create an account on printful and then go to settings and generate a api key and then convert that to base64 encode format and set it up this way

and this is how to do step 1

Please help me out.

Do you give enough time to do the GET request after? In their doc their say to wait a few seconds.

Yes I did wait, it’s instant 90% of the time as per my knowledge, have seen this implemented on code developed outside bubble. But not able to get the result within bubble api connector.

Can you click on the url: empty, and check what you got from the whole API call payload?

Its clickable but doesnt show anything of that sorts, nor is there any error response received.

image

I found the solution.

1 Like

Hello
do you mind sharing how you setup the api, I trying to connect to printful but haven’t gotten any success doing that