Question

Getting an error on attaching files to Infinity: Object of type LazyFile is not JSON serializable


I have tried several ways to creat a zap, which takes an email and puts that into Infinity.

This all works beautifully as long as I do not try to integrate the attachments into this zap.

As soon as I try to use the attachment field for the Infinity action and test the workflow, I always get the following error:

Object of type LazyFile is not JSON serializable

I have tried this with the Email by Zapier app as well as the generic IMAP app as trigger.

In the Email by Zapier app I can see that the attachment is dehydrated in some S3 bucket. I thougt that maybe that specific detail is a problem for the Infinity action.
But the same error comes up with the IMAP app, where the attachment shouldn’t be dehydrated, then rehydrated as far as I know.

Can somebody pin down on which side the reason for this error is?
Do I need to do something to not get a LazyFile-type before the Infinity action part or should the Infinity action part be able to deal with a LazyFile-type (probably by dehydrating and getting the file).


7 replies

Userlevel 7
Badge +13

Hi @bravo270 

Good question.

Please post screenshots with how your Zap step is configured in order for us to have more context, thanks.

Are you using the Infinity File Upload Zap action?

 

@Troy Tessalone I am using the Create a New Item in Infinity Zap action

 

I didn’t realize that there is a dedicated action to upload a file, since this generic action exposes an attachment field.

I redacted any information concerning my person.
If needed, I can recreate the whole thing without revealing information.

First, the trigger:

this mailbox is only for this specific zap, so no worries about it being exposed to the internet

Next, the action:

In my Infinity board exists a field of type attachments, which has the name “Anhang” (since I am german).

What I want to achieve is:

Put every new mail into a specific Infinity board. If that mail has attachments, then put these attachments into the new entry in the Infinity board.

That way I could capture anything (thoughts, reminders, offers, etc.) in one board. This is a variation of a GTD inbox.

Do I understand correctly that even with the IMAP trigger the attachments on that mail are first saved by Zapier and dehydrated before the action is started?
In that case the error is actually 100% the same as with the Email by Zapier trigger.

Userlevel 7
Badge +13

@bravo270

Try using the Infinity File Upload Zap action to see if the same error exists.

 

OK, so this action works from Zapiers side - but where exactly does that file go inside Infinity?

 

The action only lets me choose the workspace where that file should go.

But there is seemingly no way to specify a board or a folder inside a board.
So if I want to create an Item from an Email, I can successfully create that item in a specific flder in a specific board, but I cannot attach a file to that item - or any item in that folder.

What am I missing?
Right now this action is technically successful, but absolutely useless to me.

Userlevel 3
Badge +1

Hey @bravo270! So with the File Upload to Infinity action, am I correct in understanding your Zap is only giving you the option to upload to a workspace and not to a specific folder/board? 🤔 

@TamRazzleDazzle 

Yes, that is correct.

Userlevel 7
Badge +11

Hi @bravo270!

I haven’t used Infinity and we don’t have any notes on using attachments, but I suspect that you need to use something from the upload item step, like the path or link. In other words, if we imagine Infinity like a bookshelf, the Attach file puts a book on the shelf and the in the Create Item step, you tell Infinity where on the shelf to find the book. When you look at the output of the Upload file action, are there any fields that stand out as something you would expect to see in Infinity? 

Reply