mungit
mungit copied to clipboard
Mungit errors when working offline
Today I was doing some work without being connected to the internet and mungit kept giving me errors. It seems that it doesn't like not being able to talk to the upstream repository.
2017-12-10T18:16:54.754Z - warn: Responding with ERROR: {"isGitError":true,"errorCode":"offline","command":"-c color.ui=false -c core.quotepath=false -c core.pager=cat -c credential.helper=/home/jpschewe/src/mungit/bin/credentials-helper 2 8448 fetch origin --prune","workingDirectory":"/home/jpschewe/projects/fll-sw/working-dir","error":"ssh: Could not resolve hostname github.com: Name or service not known\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","message":"ssh: Could not resolve hostname github.com: Name or service not known\r","stderr":"ssh: Could not resolve hostname github.com: Name or service not known\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","stdout":""}
2017-12-10T18:16:54.754Z - warn: Sending exception to Sentry.io
[email protected] alert: failed to send exception to sentry: getaddrinfo ENOTFOUND sentry.io sentry.io:443
[email protected] alert: failed to send exception to sentry: getaddrinfo ENOTFOUND sentry.io sentry.io:443
Thanks for reporting, will be looked into! I think your hypothesis is right. We should handle the offline scenario in this case and not try to send it to Sentry...