Problem with adding attachments after indigo update

Posted on
Wed Feb 14, 2024 8:12 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Problem with adding attachments after indigo update

Hi, not sure if this is the place to post or if it should go into the Indigo server section but....

After upgrading to indigo 2023.2 an email that has been sending me attachments every morning stopped sending and errors- I looked at it and it looks like when I try to attach anything I cannot save the action. I get an error - see below. Not sure what to try next as I tried creating a new action and tried several different types of attachments but it always gives me the same error. Help please

PS. I removed the email address for the screen shot but that is not causing the error in red - also nothing shows up in red....
PPS. I have other actions that work fine sending emails but they don't have attachments.
Attachments
Image 2-14-24 at 6.01 PM.jpg
Image 2-14-24 at 6.01 PM.jpg (60.45 KiB) Viewed 931 times

_______
Norm

Posted on
Thu Feb 15, 2024 12:57 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Problem with adding attachments after indigo update

Look in the log. Might need to turn on debug logging. Also try putting quotes around the path string.


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Feb 15, 2024 3:20 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Problem with adding attachments after indigo update

Quotes around the path string did not help.

This is the log error
Attachments
Screenshot 2024-02-15 at 1.17.52 PM.png
Screenshot 2024-02-15 at 1.17.52 PM.png (83.01 KiB) Viewed 873 times

_______
Norm

Posted on
Thu Feb 15, 2024 6:10 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Problem with adding attachments after indigo update

I’ll have to check when I get home, but I think that’s a bug I already fixed but is waiting on an Indigo release.


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Feb 15, 2024 6:43 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Problem with adding attachments after indigo update

OK, thanks - strange that no one else has run into this. I have tried a ton of different attachment types and tried them all from several different locations (inside and outside of the Indigo directory). Could not get any attachments to go out.’

Curious if anyone else is able to get any attachments to work.

Either way, thanks and I’ll keep my fingers crossed that it will be fixed soon - I have been keeping an historical record with the charts I email myself for many years…

_______
Norm

Posted on
Fri Feb 16, 2024 7:21 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Problem with adding attachments after indigo update

As I recall, that bug was triggered when the file to be attached did not exist at the time the action was created, as it was attempting to validate the file at that point. When you're editing this action, does the file to be attached actually exist? If not, try creating it then saving the action.

Also, make sure the permissions on the file (and all the folders leading to it) allow it to be read by the account Indigo is running under.

If none of that works, grab the fixed version from my repo at https://github.com/FlyingDiver/ID-Email ... Plugin.zip

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Feb 16, 2024 8:25 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Problem with adding attachments after indigo update

Thanks, yes the files already exist and all the permissions look good - I’ll try the updated version and report back…

_______
Norm

Posted on
Fri Feb 16, 2024 8:32 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Problem with adding attachments after indigo update

Link in your post does not work and I only see better email when I search your projects on GitHub

_______
Norm

Posted on
Fri Feb 16, 2024 8:46 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Problem with adding attachments after indigo update

Hmm. I forgot that's a private repo. I'll see what I can do to get you a copy.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 25, 2024 2:17 pm
TimH offline
Posts: 20
Joined: Mar 06, 2008
Location: Los Gatos, CA

Re: Problem with adding attachments after indigo update

I am having issues with any attachment too using python. See below for a scripting shell example without and with attachment (Fails - RuntimeError: unable to convert python exception)

>>> plugin = indigo.server.getPlugin("com.indigodomo.email")
>>> props = {'emailTo': ‘********@mac.com', 'emailCC': '', 'emailBCC': '' , 'emailSubject': 'Test Email', 'emailAttachments': '', 'emailFormat': 'plain','emailMessage': 'Message Content' }
>>> plugin.executeAction("sendEmail", indigo.devices["smtp.mail.me.com"].id, props=props)
<indigo.Dict object at 0x1062ca5e0>

IN LOG:

Email+ Debug sendEmailAction errors = Item : (dict)
Email+ Debug sendEmailAction queueing message 'Test Email'
Email+ Debug smtp.mail.me.com: SMTP poll, 1 items in queue
Email+ sending email 'Test Email' to '*******@mac.com' using smtp.mail.me.com
Email+ Debug smtp.mail.me.com: sending:
From: *******@icloud.com
Subject: Test Email
To:******@mac.com
Date: Sun, 25 Feb 2024 12:07:38 -0800
Message-ID: <170889165823.54964.587823607306139250@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0

>>> props = {'emailTo': '********@mac.com', 'emailCC': '', 'emailBCC': '' , 'emailSubject': 'Test Email', 'emailAttachments': '/Library/Application Support/Perceptive Automation/Charts/Battery_Levels.png', 'emailFormat': 'plain','emailMessage': 'Message Content' }
>>> plugin.executeAction("sendEmail", indigo.devices["smtp.mail.me.com"].id, props=props)
Traceback (most recent call last):
File "<console>", line 1, in <module>
RuntimeError: unable to convert python exception
>>>

<NOTHING IN LOG>

<FILE Hierarchy of existing file is READ Everyone>

Last edited by TimH on Sun Feb 25, 2024 2:21 pm, edited 2 times in total.

Posted on
Sun Feb 25, 2024 2:18 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Problem with adding attachments after indigo update

The fixed plugin is waiting on the next Indigo update.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 25, 2024 2:22 pm
TimH offline
Posts: 20
Joined: Mar 06, 2008
Location: Los Gatos, CA

Re: Problem with adding attachments after indigo update

One min turn around - thx! Will turn off attachments for the moment and wait for the update.

Posted on
Tue Mar 19, 2024 10:26 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Problem with adding attachments after indigo update

Indigo 2023.2
Exactly the same problem as reported by norcoscia at the top of this thread.

BTW, I did not notice this because of another problem I was unable to fix until last weekend which kept the trigger from reaching the Email+ action.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest