IndigoDomotics / indigo-pushover

Indigo plugin to send push notifications via Pushover.
MIT License
17 stars 11 forks source link

Pushover Error Error in plugin execution ExecuteAction: #3

Closed jmortizsilva closed 9 years ago

jmortizsilva commented 9 years ago

Hi,

I'm testing Indigo and I just tried to use this plugin.

I set an action to send me a notification when a lamp in my living room lights, but when launching the action get this error:

2014-08-23 11:23:12.818 Pushover Error Error in plugin execution ExecuteAction:

Traceback (most recent call last): File "plugin.py", line 34, in send File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.py", line 1262, in urlencode <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xf3' in position 14: ordinal not in range(128)

I things that the failure happens when using Spanish words accented and characters like ñ or international characters.

Sorry if this post should not leave here, I have no experience as a developer and I have only been using this plugin one day.

I have version 0.1.1 of the plugin and I think it is the last.

I am using the latest version of Indigo with Mavericks.

Thanks a lot.

yamanote1138 commented 9 years ago

Thanks for the heads up, I'll take a look at it this weekend :)

On Sat, Aug 23, 2014 at 3:38 AM, jmortizsilva notifications@github.com wrote:

Hi, I'm testing Indigo and I just tried to use this plugin. I set an action to send me a notification when a lamp in my living room lights, but when launching the action get this error: 2014-08-23 11:23:12.818 Pushover Error Error in plugin execution ExecuteAction: Traceback (most recent call last): File "plugin.py", line 34, in send File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.py", line 1262, in urlencode <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xf3' in position 14: ordinal not in range(128) Sorry if this post should not leave here, I have no experience as a developer and I have only been using this plugin one day. I have version 0.1.1 of the plugin and I think it is the last. I am using the latest version of Indigo with Mavericks.

Thanks a lot.

Reply to this email directly or view it on GitHub: https://github.com/discgolfer1138/indigo-pushover/issues/3

jmortizsilva commented 9 years ago

Thank you for responding so quickly.

If you want to try something, you only have to say.

A greeting.

El 23/08/2014, a las 18:35, Chad Francis notifications@github.com escribió:

Thanks for the heads up, I'll take a look at it this weekend :)

On Sat, Aug 23, 2014 at 3:38 AM, jmortizsilva notifications@github.com wrote:

Hi, I'm testing Indigo and I just tried to use this plugin. I set an action to send me a notification when a lamp in my living room lights, but when launching the action get this error: 2014-08-23 11:23:12.818 Pushover Error Error in plugin execution ExecuteAction: Traceback (most recent call last): File "plugin.py", line 34, in send File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.py", line 1262, in urlencode <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xf3' in position 14: ordinal not in range(128) Sorry if this post should not leave here, I have no experience as a developer and I have only been using this plugin one day. I have version 0.1.1 of the plugin and I think it is the last. I am using the latest version of Indigo with Mavericks.

Thanks a lot.

Reply to this email directly or view it on GitHub: https://github.com/discgolfer1138/indigo-pushover/issues/3 — Reply to this email directly or view it on GitHub.

yamanote1138 commented 9 years ago

I was able to resolve the issue by UTF-8 encoding the title and message values before transmitting them to the API. This will be fixed in the upcoming release (which will also have a ton of new features thanks to @IT2BE).

jmortizsilva commented 9 years ago

Thank you very much for such a quick fix.

Forgive the question, but should I download the new version of Github? NOT have too much experience with updating plugins.

Thank you.

El 27/08/2014, a las 11:17, Chad Francis notifications@github.com escribió:

I was able to resolve the issue by UTF-8 encoding the title and message values before transmitting them to the API. This will be fixed in the upcoming release (which will also have a ton of new features thanks to @IT2BE).

— Reply to this email directly or view it on GitHub.

yamanote1138 commented 9 years ago

when the fixes are complete, I will release a new version. You will want to download it from github.