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

Invaild hostname wont abort execution #211

Closed
arnesetzer opened this issue Jul 25, 2024 · 0 comments · Fixed by #212
Closed

Invaild hostname wont abort execution #211

arnesetzer opened this issue Jul 25, 2024 · 0 comments · Fixed by #212
Labels

Comments

@arnesetzer
Copy link
Contributor

arnesetzer commented Jul 25, 2024

Describe the bug
If the hostname of the pelias instance is invalid (eg. what.ever) the fuzzy tester will retry endlessly and throws error messages for each retry until stopped manually.

Error: getaddrinfo ENOTFOUND what.ever
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'what.ever'
}
Error: getaddrinfo ENOTFOUND what.ever
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'what.ever'
}
Error: getaddrinfo ENOTFOUND what.ever
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'what.ever'
}
... (copied only a few to keep it readable but it keeps going till ctrl+c hits)

Steps to Reproduce

  1. (Clone this repository)
  2. Create a pelias.json with an invalid hostname e.g.:
{
  "acceptance-tests": {
    "endpoints": {
      "fail": "https://what.ever/v1/"
    }
  }
}
  1. Run docker run --rm -i -v './pelias.json:/code/pelias.json' -v './test_cases:/code/pelias/fuzzy-tester/test_cases' pelias/fuzzy-tester -e fail

Expected behavior
(Throwing an error message of an invalid host) and abort execution

Environment (please complete the following information):

  • OS: [e.g. Linux/Mac/Windows]: WSL Debian 11
  • Docker versions: [e.g. docker --version, docker-compose --version]: docker: 27.0.3 docker compose: v2.28.1-desktop.1

References

Didn't found anything.

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

Successfully merging a pull request may close this issue.

1 participant