Build failed -- failed during stage 'preparing repo': error checking for ref: fatal: could not read Username for 'https://github.com': No such device or address

failed during stage ‘preparing repo’: error checking for ref: fatal: could not read Username for ‘https://github.com’: No such device or address

Anybody encountered this?

hi! that’s an odd error, we don’t see that very often. “preparing repo” always means we can’t get access to your repo on github (or other service) for some reason.

Sometimes this is because you haven’t pushed anything in a while and something expired somewhere, if i were you, i would log in to github, remove the access for netlify to the repo you are trying to deploy, then re-authenticate it again and see if that fixes things. give that a try?

Yeah thanks, took those steps and that appears to have allowed the build to proceed.

1 Like