URL Extensions error w/ v2.07

Posted on
Fri May 04, 2018 10:30 am
jrcitizen offline
Posts: 26
Joined: Jan 04, 2017

URL Extensions error w/ v2.07

I was a holdout using v1.53 recently; just upgraded to v2 (running 2.07 to be exact - see below) and am running into some errors when using URL extensions.

I am trying to use a set of on/off URL's that require basic HTTP authentication. This worked fine under v1.53. Now I get the follwing error:

Code: Select all
EPS - Device Extensions Error   Exception in plugin.urlDeviceAction line 1810: global name 'base64' is not defined
                      CODE: b64 = base64.encodestring('%s:%s' % (dev.pluginProps["username"], dev.pluginProps["password"])).replace('\n', '')
EPS - Device Extensions Error   send "Skylight blinds" on failed


When comparing the old to new version, I see a couple things:

1) Under the core python libraries, import base64 has been omitted from the new version.
2) If I try to add the import base64, reload the plugin and turn the device on, I get a new error:
Code: Select all
    <addinfourl at 4527938088 whose fp = <socket._fileobject object at 0x10da4ba50>>

Unfortunately I do not know how to code Python myself, but hoping this will make sense to someone who is able to fix.

Reverting back to v1.53 has fixed the error for now.

My support information is as follows:
Code: Select all
#####################################################################
# EPS - Device Extensions                                           #
#####################################################################
#                                                                   #
# Plugin Version      : 2.0.7                                       #
# Template Version    : 3.2.1                                       #
# Core Engine Version : 2.4.5                                       #
# Indigo Version      : 7.1.1                                       #
# Indigo API Version  : 2.0                                         #
#                                                                   #
# Alphas, Betas and Pre-Releases can be downloaded from:            #
#    https://github.com/Colorado4Wheeler                            #
#                                                                   #
# All support inquiries, questions or comments go to:               #
#    http://forums.indigodomo.com/viewforum.php?f=192               #
#                                                                   #
# Copyright (c) 2018 - Colorado4Wheeler & EPS                       #
#                                                                   #
#####################################################################

Posted on
Fri May 04, 2018 10:35 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: URL Extensions error w/ v2.07

That was a special build for a user who needed something particular. I have a lot of work to do before it's ready to re-release as a new version. Thanks for the bug report :).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest