Skip to main content

Hi everyone, 

my zap has an error :

Your code had an error. See details below: Error: KeyError: 'image_url' at <code> (line 11)

 

I think the reason why this error occurred is because when jotform gives the image url from the camera widget to zapier, the value of the url is

https://www.jotform.comuploads~~~~~~~.png 

 

the correct format is 

https://www.jotform.com/uploads~~~~~~~.png 

 

are there anyone who are facing this trouble?

Hey ​@sento.group,

Can you post screenshots of Data In and Data Out as well as how each Zap step is configured to have more context?

Based on what you described, if you are having trouble with URL. You can use a Formatter→ Text → Replace action in Zapier to fix it. Here is a helpful article about Formatter in Zapier- https://zapier.com/blog/zapier-formatter-guide/

Please also make sure that the images are publicly accessible from Jotform. To do that in Jotform, you can untick Require log-in to view uploaded files in your account privacy settings. Hope it helps!


here is Data out

Data in is just the ID of the form

 

 

with this url, it is not public because the url is the form which is invalid.

but if you put slash (“/”) between “com” and “uploads” it’s publicly valid.


Hey ​@sento.group,

As I said in my previous reply as well, you can try using a Formatter→ Text → Replace action in Zapier to fix it. Here is a helpful article about Formatter in Zapier- https://zapier.com/blog/zapier-formatter-guide/. Hope it helps!
 


Hi ​@Sparsh from Automation Jinn

 

Thank you for your help!

But I just want to confirm if that happens to everyone.

 

when I integrate Jotform with GoogleSheet directly, the image url was correctly inserted into the sheet.

I think this is the zapier’s problem ???


Hey ​@sento.group,

If you have any feedback or suggestion, you can contact Zapier Support here- https://zapier.com/app/get-help

Also Formatter in Zapier doesn’t count as tasks so you don’t have to worry about efficiency. Hope it helps!


Hi there ​@sento.group 👋

I did some checking on this end and couldn’t see any similar reports of the image file URLs having a missing “/” from the URL. Is there a way to specify the file upload location within the form or the form field settings in JotForm? Just wondering if there might be a small typo in the settings that could explain why the / is missing. 🤔

If that’s not the case then it could be that there’s an issue with the coding of the JotForm app integration. In which case, as Sparsh mentioned, our Support team will be the best folks to help confirm whether that’s the case and can get a bug report opened to get that missing / added.

Let us know how you get on, want to make sure this gets sorted!