Question

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

  • 21 December 2021
  • 1 reply
  • 292 views

Userlevel 1

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.


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

Userlevel 1

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

 

Thanks