Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Cities #15

Open
milovanderlinden opened this issue Sep 3, 2016 · 1 comment
Open

Invalid Cities #15

milovanderlinden opened this issue Sep 3, 2016 · 1 comment

Comments

@milovanderlinden
Copy link

I have added a test that loops through the City enum and checks if the Discovery request is valid.
Through this test, I get a pretty solid insight on the endpoints that have a PRODUCTION endpoint available.

Summary:

  • Washington DC seems to have left the open311 scene
  • SeeClickFix has altered their endpoint structure.

This is the result:

Processing City: TORONTO
Skipped GIESSEN, error: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 215 path $.endpoints
Processing City: BONN
Processing City: ROSTOCK
Processing City: HELSINKI
Skipped LAMIA, error: null
Processing City: BALTIMORE
Processing City: BLOOMINGTON
Processing City: BOSTON
Processing City: BROOKLINE
Processing City: CHICAGO
Processing City: COLUMBUS
Processing City: GRAND_RAPIDS
Skipped PEORIA, error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Processing City: SAN_FRANCISCO
Skipped WASHINGTON, error: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
Processing City: EINDHOVEN
Processing City: QUEBEC
Processing City: SURREY
Skipped ZURICH, error: null
Skipped ZARAGOZA, error: null
Skipped LISBOA, error: null
Processing City: PHILADELPHIA
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped ALPHARETTA, error: Content is not allowed in prolog.

Skipped BAINBRIDGE_ISLAND, error: Content is not allowed in prolog.[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped CORONA, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped DELEON, error: Content is not allowed in prolog.

Skipped DUNWOODY, error: Content is not allowed in prolog.[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped HUNTSVILLE, error: Content is not allowed in prolog.
Skipped NEWBERG, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped NEW_HAVEN, error: Content is not allowed in prolog.

Skipped RICHMOND, error: Content is not allowed in prolog.[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped RUSSELL_SPRINGS, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped TUCSON, error: Content is not allowed in prolog.
Skipped DARWIN, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped FONTANA, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped HOWARD, error: Content is not allowed in prolog.
Skipped MANOR, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped NEWNAN, error: Content is not allowed in prolog.

[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped OLATHE, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped RALEIGH, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped ROOSEVELT, error: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
Skipped HILLSBOROUGH, error: Content is not allowed in prolog.
@milovanderlinden
Copy link
Author

I managed to implement some fixes. The list is now down to 7 faulty endpoints and 35 that can be connected.

Processing City: TORONTO
Processing City: GIESSEN
Processing City: BONN
Processing City: ROSTOCK
Processing City: HELSINKI
Processing City: BALTIMORE
Processing City: BLOOMINGTON
Processing City: BOSTON
Processing City: BROOKLINE
Processing City: CHICAGO
Processing City: COLUMBUS
Processing City: GRAND_RAPIDS
Skipped PEORIA, APIWrapperException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Processing City: SAN_FRANCISCO
Skipped WASHINGTON, APIWrapperException: Invalid response type - html
Processing City: EINDHOVEN
Processing City: QUEBEC
Processing City: SURREY
Processing City: ZURICH
Skipped ZARAGOZA, NullPointerException: null
Processing City: LISBOA
Processing City: PHILADELPHIA
Skipped ALPHARETTA, APIWrapperException: Invalid response - Not Found
Processing City: BAINBRIDGE_ISLAND
Processing City: CORONA
Skipped DELEON, APIWrapperException: Invalid response - Not Found
Processing City: DUNWOODY
Processing City: HUNTSVILLE
Processing City: NEWBERG
Processing City: NEW_HAVEN
Processing City: RICHMOND
Skipped RUSSELL_SPRINGS, APIWrapperException: Invalid response - Not Found
Skipped TUCSON, APIWrapperException: Invalid response - Not Found
Processing City: DARWIN
Processing City: FONTANA
Processing City: HOWARD
Processing City: MANOR
Processing City: NEWNAN
Processing City: OLATHE
Processing City: RALEIGH
Processing City: ROOSEVELT
Processing City: HILLSBOROUGH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant