Skip to main content
Question

Line items of type 'file' - error: ‘Object of type LazyFile is not JSON serializable’

  • December 21, 2021
  • 1 reply
  • 312 views

Hi, I am trying to use a line item field of type ‘file’. Unfortunately this lead me to an error: ‘Object of type LazyFile is not JSON serializable’.

Context: I am developing an integration with CLI and this happend while designing an action. The example input data for the action is a mail attachment from the G-Mail integration. If I use OneDrive as a trigger (file uploaded) the error does not occure. Maybe this has something to do with hydration.

I also tried extracting the file field out of the line items. This worked for me and does not lead to any error. I am not sure whether this is a bug or I did something wrong.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

  • Beginner
  • 2 replies
  • January 11, 2022

I encounter the same issue..
Did you find a fix for that ?

 

Thanks