403 Client Error

Posted on
Tue Jan 05, 2016 9:26 pm
kidney offline
Posts: 240
Joined: Jul 15, 2007

403 Client Error

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 196, in actionZP_announcementMP3
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1337, in actionAnnouncement
  File "./lib/gtts/tts.py", line 90, in save
  File "./lib/gtts/tts.py", line 108, in write_to_fp
  File "./lib/requests/models.py", line 837, in raise_for_status
<class 'requests.exceptions.HTTPError'>: 403 Client Error: Forbidden for url: http://translate.google.com/translate_tts?textlen=15&idx=0&q=THIS+IS+A+TEST%21&tl=en&client=t&total=1&ie=UTF-8

It's obvious that Google reject my url, but how do we go about fixing this?

Posted on
Sun Jan 10, 2016 7:23 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: 403 Client Error

There is nothing I can do. Goggle has been tough with automated requests to their TTS server. My recommendation is that you try out the IVONA TTS function instead. I added IVONA support to the plugin a couple of versions ago.

Posted on
Sun Jan 10, 2016 6:53 pm
kidney offline
Posts: 240
Joined: Jul 15, 2007

Re: 403 Client Error

OK just tried it and get this error

Code: Select all
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 202, in actionZP_announcementMP3
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1526, in actionAnnouncement
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'errorLog'


How can I fix this?

Posted on
Wed Aug 17, 2016 11:24 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: 403 Client Error

Would you give the latest version of the plugin a shot. I've made several updates to both the IVONA and Google libraries. Thanks.

kidney wrote:
OK just tried it and get this error

Code: Select all
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 202, in actionZP_announcementMP3
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1526, in actionAnnouncement
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'errorLog'


How can I fix this?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests