Failure of Better email

farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Failure of Better email

Post by farberm »

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.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Failure of Better email

Post by FlyingDiver »

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
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Failure of Better email

Post by farberm »

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 <[email protected]>
   Better Email Debug              Received Message To: Mark Farber <[email protected]>, "[email protected]" <[email protected]>, Ric Ruedy <[email protected]>
   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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Failure of Better email

Post by FlyingDiver »

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
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Failure of Better email

Post by farberm »

not using IDLE

I am still getting that Better email status is Failure in the indigo main window.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Failure of Better email

Post by FlyingDiver »

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
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Failure of Better email

Post by farberm »

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 5190 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 5190 times
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Failure of Better email

Post by FlyingDiver »

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
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Failure of Better email

Post by farberm »

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.
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Failure of Better email

Post by farberm »

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?
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Failure of Better email

Post by FlyingDiver »

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
Locked

Return to “Better Email”