mdl29 / panobus

Panobus
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Problème aléatoire #4

Closed tristanplouz closed 8 years ago

tristanplouz commented 8 years ago

Nous avons fait cette après midi le JSON du lycée, avec Léo, il est assez consequent il y 21 arrets... Lorsqu'on lance le script python, certains arrets sont recupérés lors de certain GET alors qu'au GET suivant il renvoi rien "Bad URI ?". Je pense qu'il sagit d'une erreur au niveau même de l'API bibus mais ca reste à voir.

tristanplouz commented 8 years ago

Erreur typique:

DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou

DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee

DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee

DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=blum

DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=blum WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=mirabeau

philae-ael commented 8 years ago

Une erreur de try except je pense


Tristan Gouge

On Wed, Oct 21, 2015 at 4:41 PM, Boblecodeur notifications@github.com wrote:

Erreur typique: DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=blum DEBUG:root:Get data : WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Donnart WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=Le+Moult WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Plougastel&route_id=8&format=json&stop_name=montaigne WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=messidou WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=st+luc WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=Kerichen+lycee WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=blum

WARNING:root:Bad URI ? : /WIPOD01/Transport/REST/getRemainingTimes?trip_headsign=Hopital+Tromeur&route_id=7&format=json&stop_name=mirabeau

Reply to this email directly or view it on GitHub: https://github.com/mdl29/panobus/issues/4#issuecomment-149917860

philae-ael commented 8 years ago

Le problème vient de bibus, j'envoie 255 si il n'y a pas de data. Fixé par 48a8dfe5bf1aa4fde156b296e697cd61c724b686