Comments (4)
This should not even happen, as the pte API does not support bike sharing system option...
I can add the missing enums values to SectionType, but AbstractNavitiaProvider.parseLeg will still throw IllegalArgumentException if I don't handle new types such as BSS_RENT.
@schildbach do you consider this to be a suitable fix for now? We could always add bss support in pte later.
from public-transport-enabler.
Generally I like seeing exceptions if something is wrong. If the API returns something it should not return, it's an API bug and should be reported with Navitia I'd say. If they fix it, all is well. Only if they don't manage to fix it I would add code to ignore BSS_RENT values. For now, it seems to happen very rarely, so don't worry.
from public-transport-enabler.
Agreed.
from public-transport-enabler.
Fixed in 92705c3.
from public-transport-enabler.
Related Issues (20)
- FRANCENORTHWEST: de.schildbach.pte.exception.BlockedException: https://api.navitia.io/v1/coverage/fr-nw/journeys?from=-1.559285%3B47.254863&to=-1.63126%3B47.223659&datetime=20230505T123559&datetime_represents=departure&min_nb_journeys=6&depth=0&walking_speed=1.344
- Issue in Building library on jitpack HOT 1
- VGN: UNKNOWN_TO
- SNCB: java.lang.RuntimeException: CLIENTVERSION HOT 1
- Data for Madrid (Spain) is missing metro
- OTP integration
- Renfe Cercanias (Spanish commuter rail service) is missing
- GVH: de.schildbach.pte.exception.UnexpectedRedirectException: https://app.efa.de/mdv_server/app_gvh/XSLT_TRIP_REQUEST2?outputFormat=XML&language=de&stateless=1&coordOutputFormat=WGS84[DD.ddddd]&coordOutputFormatTail=7&sessionID=0&requestID=0&coordListOutputFormat=string&type_origin=coord&name_origin=9.7214370%3A52.3675720%3AWGS84%5BDD.ddddd%5D&type_destination=coord&name_destination=9.7204530%3A52.3679780%3AWGS84%5BDD.ddddd%5D&itdDate=20230702&itdTime=1258&itdTripDateTimeDepArr=dep&calcNumberOfTrips=6&ptOptionsActive=1&itOptionsActive=1&routeType=LEASTTIME&changeSpeed=normal&includedMeans=checkbox&inclMOT_0=on&inclMOT_14=on&inclMOT_15=on&inclMOT_16=on&inclMOT_0=on&inclMOT_13=on&inclMOT_18=on&inclMOT_1=on&inclMOT_2=on&inclMOT_3=on&inclMOT_4=on&inclMOT_5=on&inclMOT_6=on&inclMOT_7=on&inclMOT_17=on&inclMOT_19=on&inclMOT_9=on&inclMOT_8=on&inclMOT_10=on&useProxFootSearch=1&trITMOTvalue100=10&locationServerActive=1&useRealtime=1&nextDepsPerLeg=1 -> null HOT 3
- VOR: java.lang.RuntimeException: AUTH HCI Core: Authorization fail HOT 1
- BRITISHCOLUMBIA: java.lang.IllegalArgumentException: Unhandled error message: The region ca-bc doesn't exists HOT 1
- VVO: java.lang.RuntimeException: uncategorized problem
- Possible data source: Mobility Database
- DB: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY) HOT 1
- Walking time as parameter for EFA HOT 2
- SNCB: java.lang.RuntimeException: CLIENTVERSION HOT 2
- SYDNEY: java.lang.RuntimeException: uncategorized problem while processing https://transportnsw.info/web/XML_TRIP_REQUEST2?outputFormat=XML&language=en&stateless=1&coordOutputFormat=WGS84[DD.ddddd]&coordOutputFormatTail=7&sessionID=0&requestID=0&coordListOutputFormat=string&type_origin=stop&name_origin=10101100&type_destination=stop&name_destination=10101101&itdDate=20231214&itdTime=2156&itdTripDateTimeDepArr=dep&calcNumberOfTrips=6&ptOptionsActive=1&itOptionsActive=1&routeType=LEASTTIME&changeSpeed=normal&includedMeans=checkbox&inclMOT_0=on&inclMOT_14=on&inclMOT_15=on&inclMOT_16=on&inclMOT_0=on&inclMOT_13=on&inclMOT_18=on&inclMOT_1=on&inclMOT_2=on&inclMOT_3=on&inclMOT_4=on&inclMOT_5=on&inclMOT_6=on&inclMOT_7=on&inclMOT_17=on&inclMOT_19=on&inclMOT_9=on&inclMOT_8=on&inclMOT_10=on&trITMOTvalue100=10&locationServerActive=1&useRealtime=1&nextDepsPerLeg=1&inclMOT_11=on&inclMOT_17=on
- VBB: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787) HOT 2
- VRS disappeared from list HOT 2
- VRR: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY[787])
- IT: java.lang.IllegalArgumentException: Unhandled error id: no_origin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from public-transport-enabler.