gitoxide icon indicating copy to clipboard operation
gitoxide copied to clipboard

Cannot clone GitHub project using blocking-http-transport-reqwest

Open samvv opened this issue 3 months ago • 1 comments

Current behavior 😯

Using this example, I tried cloning a simple repository using GitOxide but got the following cryptic error message:

Url: "https://github.com/samvv/evcape.git"
Cloning "https://github.com/samvv/evcape.git" into "evcape"...
Error: An IO error occurred when talking to the server

Caused by:
    error sending request for url (https://github.com/samvv/evcape.git/info/refs?service=git-upload-pack)

That's it. I don't get anything more than 'error sending request'. The .source() object of the nested Io error is also empty.

It does work with at least the following configurations:

  • blocking-http-transport-curl
  • blocking-http-transport-reqwest-rust-tls

Test sandbox: https://codesandbox.io/p/devbox/naughty-goldstine-pd26nh

Expected behavior 🤔

Cloning should work, just like with blocking-http-transport-curl.

Git behavior

No response

Steps to reproduce 🕹

No response

samvv avatar Aug 27 '25 14:08 samvv

The problem seems to be that the error message swallows information about the actual root cause, which here might be related to the transport failing to connect via HTTPS? Since the rust-tls variant works, it might be that.

Maybe it's a problem with the error handling in reqwest as well as error sending request for url or shorter substrings aren't in the gitoxide codebase.

So, what I'd be missing here is a clearer error message, which doesn't seem to originate in gitoxide, but it's still possible that we swallow the detailed error somehow.

Byron avatar Aug 28 '25 03:08 Byron