You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
- name: Wait for service to be up
health_check: expected_status=400 url=http://127.0.0.1:8090/pushreport
Error:
TASK: [roox-stat-fe | Wait for service to be up] ******************************
failed: [mks] => {"failed": true, "failed_attempts": 9}
msg: Maximum attempts reached: HTTP Error 400:
The text was updated successfully, but these errors were encountered:
- name: Wait for website to become available
health_check:
url: "{{ base_url }}"
initial_delay: 5
delay_between_tries: 5
max_retries: 20
expected_status: 500
expected_regexp: "Cannot find error page with key: _internalError"
Fixed it by changing except (URLError, HTTPException, socket.error) as e: (health_check on line 101) to except URLError as e:. I ported the script to Python 3 and it works for me, but I'm not sure if it would be applicable for Python 2 as well.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Module throws error when response status is 400.
Error:
The text was updated successfully, but these errors were encountered: