Cannot send dynamic numbers via api

I’m trying to send dynamic start times to shotstack via the api connector. If I send the number 42 it works. If I send a dynamic number (even when that number is 42 - it is a number field, it looks like 42) It gives me a 400 error.

I’ve even tried removing the quotes in the json body :"start": <dynamic number> instead of "start": "<dynamic number>"

I’m at wits end. does anyone have any ideas?

Edit - I’m getting the number from the open source plugin “Retrieve Media Duration” All I can guess is that I’m getting a string not a number from that? (but I can perform math functions on it, and it’s filling a number field. I have no idea)

Can you send a link to the API documentation, it might be looking for a number, not a string (so you may need to remove the ")

yes, thanks, it’s looking for a number. I have tried removing the "

Can you share api connector settings and your action settings?

1 Like

Also, what exactly is the error – can you share a screenshot of it?

Thank you both for your interest, I figured it out. Somehow I was getting the duration of the video from the plugin before waiting for the “saved to bubble” action in the plugin called “when a durationretriever duration is retrieved”

So it looked I had it in the step by step, but it wasn’t saved to database I guess. I didn’t even know about that step.

1 Like