Skip to main content
Solved

DataCloneError: when trying to pass file to request template

  • September 10, 2024
  • 2 replies
  • 23 views

panksi
Apprentice

This is my try to pass formdata in body of requset template.


I am getting this error:

ADD FILE TO UPDATE ERROR DataCloneError: Failed to execute 'postMessage' on 'MessagePort': FormData object could not be cloned.

this is my template definition:
 

 

Best answer by mahendarsingh

Hi Panksi,

I hope you are doing well :)

I understand that you are facing issues with request templates

To use the request method,

  1. As part of the app configuration, configure request templates.
  2. In manifest.json, declare the template(s) that the app code uses.
  3. From the app logic, invoke the configured template(s), and make HTTP requests to third-party domains.
  4. Please refer to this article for additional details https://developers.freshworks.com/docs/guides/solve-cors-errors/how-to-make-api-with-request-method/

Feel free to respond to this thread for any queries :)

Thank you

View original
Did this topic help you find an answer to your question?

2 replies

alyssia.correa
Community Manager
Forum|alt.badge.img+8
  • Community Manager
  • 618 replies
  • September 23, 2024

Hey @panksi - I believe you have a Freshdesk question as per your tag. It was posted under the Freshsales forum - I have moved it for you. @mahendarsingh @hemanth.ramya - can you help here?


mahendarsingh
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • 97 replies
  • Answer
  • October 3, 2024

Hi Panksi,

I hope you are doing well :)

I understand that you are facing issues with request templates

To use the request method,

  1. As part of the app configuration, configure request templates.
  2. In manifest.json, declare the template(s) that the app code uses.
  3. From the app logic, invoke the configured template(s), and make HTTP requests to third-party domains.
  4. Please refer to this article for additional details https://developers.freshworks.com/docs/guides/solve-cors-errors/how-to-make-api-with-request-method/

Feel free to respond to this thread for any queries :)

Thank you


Reply