Closed stevepeak closed 5 years ago
Just trying to figure out what really is needed to change from the v4 url.
Is the above correct, or have I missed something?
Hey @AdmiringWorm 👋 I do believe you have it correct 👍
+1
This have now finally been implemented in the codebase, and will be part of the next release (1.6.0).
It will try the v2 url when the v4 url fails, no matter the response code returned when trying to use the v4 url. (A major restructuring would be needed to be able to implement the fallback only if server returns status code 405).
For enterprise customers there are cases when v4 endpoint is not available. Please add the v2 endpoint as a backup for 405 errors to v4.
Directions are here: https://github.com/codecov/codecov-bash/blob/master/codecov#L1524-L1538
Thanks!