Closed kingsleyh closed 1 month ago
hmm just started working again after retry several times
FYI this also happened to us. I pinned utoipa-swagger-ui 7.0.1 for the moment as a workaround. But if it's now magiced a solution, I'll unpin it and report back to see if that's true for us.
I believe that the actual issue lies within GitHub itself. Since it tries to download the Swagger UI from GitHub releases and it is not meant for heavy traffic IMO and might be bit unpredictable.
However it tries to download the Swagger UI with curl
and fails if underlying system does not have that package. Alternatively it can be downloaded with reqwest
via reqwest
feature flag or since 7.1.0
there is vendored
feature flag that provides vendored Swagger UI which basically behaves the same as pre 7.x.x versions. I noticed that there is still a need for a vendored Swagger UI to give ultimate stability in sandboxed environments.
Can confirm that not having curl
in the underlying container is the issue.
"trying to download using curl
system package" in that sense isn't the most helpful of errors, would suggest something more explicit like "failed to find the system package curl
".
True, could actually improved at sometime in future. I'll add task to the board about this
Just started happening - any idea why it can't download it?