Failure of Better email

Posted on
Wed Mar 22, 2017 5:42 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Failure of Better email

I am having Better email show a failure when it was previously working. Here is the error from the log


Code: Select all
 IMAP server connection error: No registered converter was able to produce a C++ rvalue of type CCString from this Python object of type instance


Thanks for your help.

Posted on
Wed Mar 22, 2017 6:10 pm
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Failure of Better email

That's a really strange error. I've never seen that one before. Please set logging to debug level and try it again.

The C++ code has to be in the Indigo server. I wonder if Matt or Jay has ever seen this error.

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

Posted on
Wed Mar 22, 2017 6:24 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Re: Failure of Better email

Here is the Debug log
...

Code: Select all
 
   Better Email Debug              Better email-Gmail incoming: Checking Message # 73
   Better Email Debug              Better email-Gmail incoming: Message # 73 already seen, skipping...
   Better Email Debug              Better email-Gmail incoming: Checking Message # 74
   Better Email Debug              Better email-Gmail incoming: Message # 74 already seen, skipping...
   Better Email Debug              Better email-Gmail incoming: Checking Message # 75
   Better Email Debug              Better email-Gmail incoming: Message # 75 already seen, skipping...
   Better Email Debug              Better email-Gmail incoming: Checking Message # 76
   Better Email Debug              Better email-Gmail incoming: Fetching Message # 76
   Better Email Debug              Received Message Subject: Silk Road Medical-Florida Vascular TCAR Presentation
   Better Email Debug              Received Message From: Andrew Davis <Andrew.Davis@silkroadmed.com>
   Better Email Debug              Received Message To: Mark Farber <markadamfarber@gmail.com>, "mark_farber@med.unc.edu" <mark_farber@med.unc.edu>, Ric Ruedy <ric@silkroadmed.com>
   Better Email Debug              Received Message ID: <CY1PR0201MB1036AE3BD877F41DEFD41CCE90790@CY1PR0201MB1036.namprd02.prod.outlook.com>
   Better Email Error              IMAP server connection error: No registered converter was able to produce a C++ rvalue of type CCString from this Python object of type instance
   Better Email Debug              Better Email SMTP Outgoing: SMTP poll, 0 items in queue

Posted on
Wed Mar 22, 2017 6:32 pm
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Failure of Better email

Are all messages in the IMAP INBOX processed correctly? Are you using IDLE connections?

I'm trying to figure out if this error is happening during calls to the IMAP library, or calls to the Indigo server. I'm thinking maybe the server, but the only calls that could trigger it are:

Code: Select all
            self.device.updateStateOnServer(key="serverStatus", value="Success")
            self.device.updateStateImageOnServer(indigo.kStateImageSel.SensorOn)


You haven't accidentally deleted any image files from your Indigo installation, have you?

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

Posted on
Wed Mar 22, 2017 6:35 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Re: Failure of Better email

not using IDLE

I am still getting that Better email status is Failure in the indigo main window.

Posted on
Wed Mar 22, 2017 6:36 pm
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Failure of Better email

Try turning on IDLE and see if the error goes away. FWIW, using IDLE is pretty much always preferred if your server supports it.

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

Posted on
Wed Mar 22, 2017 6:42 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Re: Failure of Better email

ok error went away but why is the status still listed as Failure

Code: Select all
   Started plugin "Better Email 7.1.0"
   Better Email                    Starting Better Email
   Better Email Debug              updateFrequency = 86400.0
   Better Email Debug              Better Email SMTP Outgoing: Device Version is up to date
   Better Email Debug              Starting server: Better Email SMTP Outgoing
   Better Email Debug              Better email-Gmail incoming: Device Version is up to date
   Better Email Debug              Starting server: Better email-Gmail incoming
   Better Email Debug              Better email-Gmail incoming: Doing connect using encryptionType = SSL
   Better Email Debug              Better email-Gmail incoming: idle() called
   Better Email                    Checking for updates...
   Better Email Debug              Plugin version detected: 7.1.0
   Better Email Debug              Current version is: 7.1.0
   Better Email Debug              Getting latest release from FlyingDiver/Indigo-BetterEmail...
   Better Email Debug              GET /repos/FlyingDiver/Indigo-BetterEmail/releases/latest
   Better Email Debug              HTTP 200 OK
   Better Email Debug              Latest release is: 7.1.0
   Better Email                    No updates are available
   Better Email Debug              Better Email SMTP Outgoing: SMTP poll, 0 items in queue
Attachments
Screen Shot 2017-03-22 at 8.40.25 PM.png
Screen Shot 2017-03-22 at 8.40.25 PM.png (374.78 KiB) Viewed 1198 times
Screen Shot 2017-03-22 at 8.40.25 PM.png
Screen Shot 2017-03-22 at 8.40.25 PM.png (374.78 KiB) Viewed 1198 times

Posted on
Wed Mar 22, 2017 6:47 pm
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Failure of Better email

farberm wrote:
ok error went away but why is the status still listed as Failure


Because I'm a terrible programmer. I don't update that field properly when using IDLE. I'll fix that in the next update. But if updating that field causes the error you were getting, that's going to be a problem. Hopefully Matt or Jay will have some clue what's actually causing the error.

Here's the actual code. The connect() and checkMsgs() calls are working properly. It's one of the next four that's causing the exception.

Code: Select all
        try:
            self.connect()
            self.checkMsgs()

            # close the connection and log out
            self.device.updateStateOnServer(key="serverStatus", value="Success")
            self.device.updateStateImageOnServer(indigo.kStateImageSel.SensorOn)
            self.connection.close()
            self.connection.logout()
            self.logger.debug(u"Logged out from IMAP server: " + self.device.name)
        except Exception, e:
            self.logger.error(u"IMAP server connection error: " + str(e))
            self.device.updateStateOnServer(key="serverStatus", value="Failure")
            self.device.updateStateImageOnServer(indigo.kStateImageSel.SensorOff)

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

Posted on
Wed Mar 22, 2017 7:32 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Re: Failure of Better email

I am using better email with gmail. It was working before, so I am not sure why it says failure cuz others are not reporting problems.

Posted on
Wed Mar 22, 2017 7:44 pm
farberm offline
Posts: 148
Joined: Feb 24, 2008

Re: Failure of Better email

When I try an send an email this is the error I get


Code: Select all
   Error (client)                  timeout waiting for plugin response from com.flyingdiver.indigoplugin.betteremail for request UiGetValues1
   Error (client)                  timeout waiting for plugin response from com.flyingdiver.indigoplugin.betteremail for request CallPluginFunc
   Error (client)                  runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

Any other suggestions?

Posted on
Thu Mar 23, 2017 5:33 am
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Failure of Better email

Quit the Indigo client and restart it. That looks like the error message you get when there's an editing dialog for the device open.

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests