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

Unable to save a child if the postcode validation server is down #1110

Open
mbarton opened this issue Nov 25, 2024 · 0 comments
Open

Unable to save a child if the postcode validation server is down #1110

mbarton opened this issue Nov 25, 2024 · 0 comments

Comments

@mbarton
Copy link
Member

mbarton commented Nov 25, 2024

  1. Edit POSTCODE_API_BASE_URL to point to something else, to simulate the postcode validation API being down
  2. Try to add a new child

Expected: the child saves fine
Actual: it fails to save saying the postcode is invalid

django-1   | ERROR [epilepsy12.general_functions.postcode:31] Postcode validation failure. Could not validate postcode at https://mrb.lol/postcodes/SE12 9QF. response.status_code=404
django-1   | INFO [epilepsy12.views.case_views:624] Invalid data provided to case form: <ul class="errorlist"><li>postcode<ul class="errorlist"><li>Invalid postcode</li></ul></li></ul>

May be worth fixing alongside moving to our own hosted postcodes.io (#1096)

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