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

geodata.gov.hk returning 400/500 Error causes interrupt of the batch parsing #82

Open
oktak opened this issue Jan 16, 2019 · 4 comments

Comments

@oktak
Copy link
Collaborator

oktak commented Jan 16, 2019

Fuxk that https://geodata.gov.hk/gs/locationSearchAPI
looks like not always responses with result.

There could be a fallback to single source mode with https://www.als.ogcio.gov.hk/lookup

@oktak
Copy link
Collaborator Author

oktak commented Jan 16, 2019

Possible work-around:
append &[some_random_string] behind the request URL. But still it seems not always work.

https://geodata.gov.hk/gs/api/v1.0.0/locationSearch?q=[input_address]&[some_random_string]

@cswbrian
Copy link
Collaborator

Can you provide some input address cases for reproducing?

@oktak
Copy link
Collaborator Author

oktak commented Jan 16, 2019

@nandiheath
Copy link
Collaborator

the error occurs randomly. I guess that it is some server side bug from their side, which caused by an impulse of request in a short period. I added some try catch block and sees if it helps.

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

3 participants