Eichhoernchen/SiriServer — Issue #303: Weather Plugin - "There was an error processing your request" 
Author: Begall
Created: 2012-02-18 13:40:56+00:00
State: open

Whenever I ask for a forecast, I get "There was an error processing your request". The error SiriServer spits out is:

INFO process_recognized_speech Best matching result: "Weather forecast" with a confidence of 86.08%
INFO read_next_object_from_unzipped Received a Ping (5)
INFO read_next_object_from_unzipped Returning a Pong (5)
{'weatherForecast': {'failure': {'de-DE': 'Ich konnte leider keine Wettervorhersage finden!', 'en-US': "I'm sorry but I could not find the forecast for this location!"}, 'search': {0: {'de-DE': u'Einen Moment Geduld bitte...', 'en-US': u'Checking my sources...'}, 1: {'de-DE': u'Ich suche nach der Vorhersage ...', 'en-US': u'Please wait while I check that...'}, 2: {'de-DE': u'Einen Moment bitte ...', 'en-US': u'One moment please...'}, 3: {'de-DE': u'Ich suche nach Wetterdaten...', 'en-US': u'Trying to get weather data for this location...'}}, 'forecast': {'HOURLY': {0: {'de-DE': u'Hier ist die heutige Vorhersage f\xfcr {0}, {1}', 'en-US': u"Here is today's forecast for {0}, {1}"}, 1: {'de-DE': u'Hier ist die Wetterprognose von heute f\xfcr {0}, {1}', 'en-US': u"This is today's forecast for {0}, {1}"}, 2: {'de-DE': u'Ich habe folgende Tagesprognose f\xfcr {0}, {1} gefunden', 'en-US': u'I found the following hourly forecast for {0}, {1}'}}, 'DAILY': {0: {'de-DE': u'Hier ist die Vorhersage f\xfcr {0}, {1}', 'en-US': u'Here is the forecast for {0}, {1}'}, 1: {'de-DE': u'Hier ist die Wetterprognose f\xfcr {0}, {1}', 'en-US': u'This is the forecast for {0}, {1}'}, 2: {'de-DE': u'Ich habe folgende Vorhersage f\xfcr {0}, {1} gefunden', u'en-US': 'I found the following forecast for {0}, {1}'}}}}}
INFO process_compressed_data Forwarding object to plugin
INFO read_next_object_from_unzipped Received a Ping (6)
INFO read_next_object_from_unzipped Returning a Pong (6)
ERROR run Unexpected during plugin processing
Traceback (most recent call last):
File "/home/xbmc/Downloads/serverfolder/Eichhoernchen-SiriServer-31e0410/plugin.py", line 95, in run
self.__method(self, self.__speech, self.__lang)
File "/home/xbmc/Downloads/serverfolder/Eichhoernchen-SiriServer-31e0410/plugins/weather.py", line 159, in weatherForecastLookUp
city = filter(lambda x: True if "locality" in x['types'] or "administrative_area_level_1" in x['types'] else False, components)[0]['long_name']
IndexError: list index out of range

This happens whether I have set everything to en-GB or en-US, so I don't think it's related to that.