Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.12] [Fleet] Fix 500 in Fleet API when request to product versions …
…endpoint throws ECONNREFUSED (#172850) (#172865) # Backport This will backport the following commits from `main` to `8.12`: - [[Fleet] Fix 500 in Fleet API when request to product versions endpoint throws ECONNREFUSED (#172850)](#172850) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kyle Pollich","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-07T18:14:35Z","message":"[Fleet] Fix 500 in Fleet API when request to product versions endpoint throws ECONNREFUSED (#172850)\n\n## Summary\r\n\r\nNetwork-level errors will cause `fetch` to `throw` rather than resolving\r\nwith a status code. This PR updates our logic to handle this case for\r\nairgapped environments where `ECONNREFUSED` style errors squash HTTP\r\nrequests at the DNS level.","sha":"be6fbc4dcc8fff7e7419cf3fa9b05a6b13e3edba","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:prev-minor","v8.12.0","v8.13.0","v8.11.3"],"number":172850,"url":"https://github.com/elastic/kibana/pull/172850","mergeCommit":{"message":"[Fleet] Fix 500 in Fleet API when request to product versions endpoint throws ECONNREFUSED (#172850)\n\n## Summary\r\n\r\nNetwork-level errors will cause `fetch` to `throw` rather than resolving\r\nwith a status code. This PR updates our logic to handle this case for\r\nairgapped environments where `ECONNREFUSED` style errors squash HTTP\r\nrequests at the DNS level.","sha":"be6fbc4dcc8fff7e7419cf3fa9b05a6b13e3edba"}},"sourceBranch":"main","suggestedTargetBranches":["8.12","8.11"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172850","number":172850,"mergeCommit":{"message":"[Fleet] Fix 500 in Fleet API when request to product versions endpoint throws ECONNREFUSED (#172850)\n\n## Summary\r\n\r\nNetwork-level errors will cause `fetch` to `throw` rather than resolving\r\nwith a status code. This PR updates our logic to handle this case for\r\nairgapped environments where `ECONNREFUSED` style errors squash HTTP\r\nrequests at the DNS level.","sha":"be6fbc4dcc8fff7e7419cf3fa9b05a6b13e3edba"}},{"branch":"8.11","label":"v8.11.3","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kyle Pollich <[email protected]>
- Loading branch information