Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Sorry, couldn't find any help with that topic (use --explain to learn why) #489

Open
wasertech opened this issue Dec 10, 2023 · 8 comments
Labels

Comments

@wasertech
Copy link

wasertech commented Dec 10, 2023

What happened:

❯ howdoi show my ip for ssh
ERROR: Sorry, couldn't find any help with that topic (use --explain to learn why) 

What you expected to happen:

An answer of some sort. Like ip address show or even ifconfig or something.

Output with --explain

Please provide the output of running the same command with the --explain flag like so

Click here to expand the logs
❯ howdoi show my ip for ssh --explain
INFO: Version: 2.0.20
INFO: Fetching answers for query: show my ip for ssh
INFO: Using cached links
INFO: No StackOverflow links found in cached search engine results - will make live query
INFO: Searching google with URL: https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&hl=en
INFO: Search engine google found no StackOverflow links, returned HTML is:
INFO: <!DOCTYPE html><html lang="en" dir="ltr"><head><style nonce="UWF2NftPtr_7Eav4xNZPeA">
a, a:link, a:visited, a:active, a:hover {
  color: #1a73e8;
  text-decoration: none;
}
body {
  font-family: Roboto,Helvetica,Arial,sans-serif;
  text-align: center;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.box {
  border: 1px solid #dadce0;
  box-sizing: border-box;
  border-radius: 8px;
  margin: 24px auto 5px auto;
  max-width: 800px;
  padding: 24px;
}
.youtubeContainerUIModernization,
.boxUIModernization {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}
.signInContainerUIModernization {
    display: flex;
    justify-content: flex-end;
}
h1 {
  color: #2c2c2c;
  font-size: 24px;
  hyphens: auto;
  margin: 24px 0;
}
.icaCallout {
  background-color: #f8f9fa;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.icaCalloutUIModernization {
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.2px;
  background-color: #f8f9fa;
  padding: 12px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: left;
}
.icaCalloutUIModernization > a {
  color: #065fd4;  /* youtube dark-blue color */
}
.subUIModernization,
.contentTextUIModernization,
.contentTextUIModernization > p {
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 18px;
  text-align: left;
}
.contentTextUIModernization > a,
.contentTextUIModernization > p > a {
  color: #065fd4;
}
.contentTextUIModernization > p {
  margin: 16px 0;
}
.contentTextUIModernization > ul {
  padding-left: 36px;
  margin: 16px 0;
}
p, .sub, .contentText, .icaCallout {
  color: #5f6368;;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.2px;
  text-align: left;
}
.signin {
  text-align: right;
}
.signInIconContainer {
  width: 24px;
  height: 24px;
  margin: 0 6px 0 -6px;
}
.signInIcon {
  fill: #065fd4; /* dark-blue-color */
}
.signinUIModernization {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
}
.bulletUIModernization {
  line-height: 18px;
  margin: 8px 0;
}
.signinButtonDisplayUIModernization {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}
.horizontalContainerEndUIModernization {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cardHeaderUIModernization {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.logoCenter {
  justify-content: center;
}
.logoUIModernization {
  margin-right: auto;
}
.youTubeHeaderUIModernization {
 padding: 20px 24px 0;
}
.saveButtonContainer,
.saveButtonContainerNarrowScreen {
  width: 100%;
  margin-top: 12px;
}
.saveButtonContainerNarrowScreenUIModernization {
  width: 100%;
}
.customButtonContainer {
  height: 20px;
  padding: 8px 0;
  margin-top: 8px;
}
.navigationCtasYoutube {
  text-align: right;
}
a.button {
  color: #fff;
}
a.hairlinebutton,
a.nolinebutton{
  color: #1a73e8;
}
.navigationCtasYoutube a.hairlinebutton {
  border-color: #1a73e8;
}
button, .button {
  background-color: #1a73e8;
  border: none;
  color: #fff;
}
input.button {
  -webkit-appearance: none;
}
.basebutton {
  border-radius: 4px;
  cursor: pointer;
  font-family: Roboto,Helvetica,Arial,sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  margin: 12px 4px 0;
  padding: 8px 24px;
}
.hairlinebutton {
  background-color: #fff;
  border-width: 1px;
  border-color: #dadce0;
  border-style: solid;
  max-height: 15px;
}
.basebuttonUIModernization {
  outline: none;
  text-align: center;
  vertical-align: middle;
  line-height: 18px;
  cursor: pointer;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  height: 36px;
  min-width: 72px;
  border-radius: 18px;
  padding: 0 16px;
}
.signInButtonUIModernization {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  color: #065fd4;
  }
.signInButtonUIModernization:focus-visible {
  background-color: #fff;
  border: 1px solid #065fd4;
  color: #065fd4;
}
.signInButtonUIModernization:hover {
  background-color: #f2f8ff;
  border: 1px solid transparent;
  color: #065fd4;
}
.signInButtonUIModernization:hover:focus-visible {
  background-color: #f2f8ff;
  border: 1px solid #065fd4;
  color: #065fd4;
}
.signInButtonUIModernization:active,
.signInButtonUIModernization:active:hover,
.signInButtonUIModernization:active:focus-visible {
  background-color: #e5e5e5;
  border: 1px solid transparent;
  color: #065fd4;
}
.signinUIModernization a,
.signinUIModernization a:link,
.signinUIModernization a:visited,
.signinUIModernization a:active,
.signinUIModernization a:hover,
.signinUIModernization a:focus-visible {
  color: #065fd4;
}
.hairlinebuttonUIModernization {
  background-color: #0f0f0f;
  border: 2px solid transparent;
  color: #fff;
  }
.hairlinebuttonUIModernization:focus-visible {
  background-color: #fff;
  border: 2px solid #0f0f0f;
  color: #0f0f0f;
}
.hairlinebuttonUIModernization:hover {
  background-color: #272727;
  border: 2px solid transparent;
  color: #fff;
}
.hairlinebuttonUIModernization:hover:focus-visible {
  background-color: #e7e7e7;
  border: 2px solid transparent;
  color: #0f0f0f;
}
.hairlinebuttonUIModernization:active,
.hairlinebuttonUIModernization:active:hover,
.hairlinebuttonUIModernization:active:focus-visible {
  background-color: #3f3f3f;
  border: 2px solid transparent;
  color: #fff;
}
.customizeButtonContainerUIModernization {
  display: flex;
  text-align: center;
}
.customizeButtonUIModernization {
  box-sizing: border-box;
  background-color: #f2f2f2;
  border: 2px solid transparent;
  text-align: center;
}
.customizeButtonUIModernization:focus-visible {
  background-color: #fff;
  border: 2px solid #0f0f0f;
}
.customizeButtonUIModernization:hover {
  background-color: #e6e6e6;
  border: 2px solid transparent;
}
.customizeButtonUIModernization:active,
.customizeButtonUIModernization:active:hover,
.customizeButtonUIModernization:active:focus-visible {
  background-color: #cfcfcf;
  border: 2px solid transparent;
}
a.basebuttonUIModernization.customizeButtonUIModernization,
a.basebuttonUIModernization.customizeButtonUIModernization:link,
a.basebuttonUIModernization.customizeButtonUIModernization:visited,
a.basebuttonUIModernization.customizeButtonUIModernization:active,
a.basebuttonUIModernization.customizeButtonUIModernization:focus {
  color: #0f0f0f;
  text-decoration: none;
  padding: 8px 16px;
}
.saveButtonUIModernization {
  text-align: center;
}
.detailsButtonUIModernization {
  margin-top: 16px;
  min-width: 220px;
}
.error {
  border: 2px solid #d93025;
  border-radius: 5px;
  color: #d93025;
  margin: auto;
  padding: 5px;
}
.box a:hover, .boxUIModernization a:hover, .detailspage a:hover {
  text-decoration: underline;
}
.footer {
  margin-top: 16px;
}
.footerLinks {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footerUIModernization {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 16px;
}
.footer a {
  margin-left: 24px;
  white-space: nowrap;
}
.footer a, .footer select, .footer input {
  color: #757575;
  font-size: 12px;
}
.footerUIModernization a {
  margin-left: 8px;
  padding: 0 8px;
}
.footerUIModernization a,
.footerUIModernization input,
.footerUIModernization select {
  color: #606060;  /* grey5 color - youtube secondary color */
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.footerUIModernization form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.languagepicker {
  display: inline-flex;
  margin: 2px 0;
}
#languageform,
#languageselect {
  margin: 0 2px;
}
#languageselect {
  color: #757575;
}
.detailspage {
  margin: 24px auto 0 auto;
  max-width: 700px;
}
.detailspage h1, .detailspage h2 {
  font-size: 22px
}
.setting {
  border: 1px solid #dadce0;
  box-sizing: border-box;
  border-radius: 8px;
  margin-bottom: 11px;
  padding: 24px 24px 20px 24px;
  text-align: right;
}
.settingUIModernization {
  border: 1px solid #dadce0;
  box-sizing: border-box;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 24px;
  text-align: right;
}
.sub {
  padding: 24px 24px 20px 24px;
}
hr {
  margin: 12px -24px 12px;
  border: 0;
  border-top: 1px solid #dadce0;
}
fieldset {
  border: none;
  padding: 0;
}
label {
  margin: 24px;
}
td {
  vertical-align: top;
}
.setting h2, .setting h3, h4 {
  color: #3c4043;
  margin: 0;
  text-align: left;
}
.yt-text {
  color: #5f6368;
  font-size: 14px;
  font-weight: 300;
}
.detailspageUIModernization {
  margin: 0 auto;
  max-width: 700px;
}
.subUIModernization > ul > li,
.detailspageUIModernization p{
  color: #606060;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
}
.detailspageUIModernization > p,
.settingUIModernization p,
.subUIModernization > p,
.subUIModernization > ul {
  margin: 16px 0;
}
.subUIModernization p:last-of-type {
  margin-bottom: 0;
}
.settingUIModernization fieldset {
  margin: 0;  /* removing the default margin of the fieldset element */
}
.subUIModernization > ul {
  padding-left: 36px;
}
.subUIModernization > ul > li {
  line-height: 18px;
  margin: 8px 0;
}
.detailspageUIModernization h1{
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
}
.settingUIModernization h2 {
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  margin: 0;
  text-align: left;
}
.detailspageUIModernization h4 {
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  margin: 0;
  text-align: left;
}
.subUIModernization > a,
.subUIModernization > p > a,
.detailspageUIModernization > a,
.detailspageUIModernization > p > a {
  color: #065fd4;
}
.detailspageUIModernization a:hover {
  text-decoration: underline;
}
.subUIModernization {
  padding: 0 24px;
}
.ytMainHeaderUIModernization {
  color: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
}
.ytTextUIModernization {
  color: #606060;
  font-family: 'Google Sans';
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
}
.productLogoContainer {
  margin: auto;
  max-width: 360px;
}
.ytLogoUIModernization {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}
.ytLogoImageUIModernization {
  vertical-align: middle;
  display: inline-block;
  margin-bottom: 8px;
}
.horizontalSeparator {
  margin: 12px -24px;
}
.horizontalSeparatorUIModernization {
  margin: 16px -24px;
}
/** Narrow screen (for example a mobile device). */
@media only screen and (max-width: 480px) {
  body {
    margin: 18px 14px;
  }
  .bodyUIModernization {
    margin: 24px 16px;
  }
  .ytLogoUIModernization {
    flex-direction: column;
    align-items: flex-start;
  }
  .ytLogoImageUIModernization {
    margin-bottom: 0;
  }
  .cardHeaderUIModernization {
    justify-content: space-between;
  }
  .ytTextUIModernization {
    margin-left: 0;
    margin-top: -4px;
  }
  .settingUIModernization {
    padding: 16px;
  }
  .settingUIModernization p {
    margin-top: 8px;
  }
  .subUIModernization {
    padding: 0;
  }
  .horizontalSeparatorUIModernization {
    margin: 16px 0;
  }
  .footer form {
    margin-bottom: 3px;
  }
  .imgContainer {
    min-width: 96px;
  }
  button, .button {
    width:100%;
  }
  .basebutton {
    margin: 12px 0 0;
  }
  .hideOnSmallWidth {
    display: none;
  }
  .saveButtonContainerNarrowScreen,
  .saveButtonContainerNarrowScreenUIModernization {
    display: inline-block;
  }
  .saveButtonContainer {
    display: none;
  }
  .saveButtonContainerUIModernization {
    display: none;
  }
  .navigationCtasYoutube a.hairlinebutton {
    display: block;
    text-align: center;
  }
  .detailsButtonUIModernization,
  .saveButtonUIModernization {
    display: block;
    box-sizing: border-box;
    width:100%;
    margin-bottom: 16px;
  }
  .customizeButtonUIModernization {
    display: block;
    box-sizing: border-box;
    width:100%;
  }
}

@media only screen and (max-width: 380px) {
  .imgContainer {
    min-width: 72px;
  }
}

/** Normal/non-narrow screen. */
@media not screen and (max-width: 480px) {
  body {
    margin: 18px 25px;
  }
  .bodyUIModernization {
    margin: 24px;
  }
  .boxUIModernization {
    border: 1px solid #dadce0; /* grey-300 color */
    border-radius: 12px;
    padding: 24px;
  }
  .signInContainerUIModernization {
    margin-bottom: 24px;
  }
  .footer form {
    display: inline;
  }
  .imgContainer {
    width: 51%;
  }
  button, .button {
    width: auto;
  }
  .searchButton {
    min-width: 182px;
  }
  .detailsButton {
    min-width: 220px;
  }
  .hideOnNormalWidth {
    display: none;
  }
  .saveButtonContainer {
    display: inline-block;
  }
  .saveButtonContainerNarrowScreen,
  .saveButtonContainerNarrowScreenUIModernization {
    display: none;
  }
  .saveButtonContainerUIModernization {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }
  .saveButtonUIModernization {
    margin-left: 8px;
  }
}
</style><title>Before you continue to Google Search</title><meta name="viewport" content="initial-scale=1, maximum-scale=5, width=device-width"><link rel="shortcut icon" href="//www.google.com/favicon.ico"></head><body class=""><div><div class="signin"><a href="https://accounts.google.com/ServiceLogin?hl=en&amp;continue=https://www.google.com/search?q%3Dsite:stackoverflow.com%2520show%2520my%2520ip%2520for%2520ssh%26hl%3Den&amp;gae=cb-none" class="basebutton hairlinebutton hideOnSmallWidth">Sign in</a></div></div><div class=""><div class="box"><div class="cardHeaderUIModernization logoCenter"><img src="//www.gstatic.com/images/branding/googlelogo/1x/googlelogo_color_68x28dp.png" srcset="//www.gstatic.com/images/branding/googlelogo/2x/googlelogo_color_68x28dp.png 2x" width="68" height="28" alt="Google"><div class="signin"><a href="https://accounts.google.com/ServiceLogin?hl=en&amp;continue=https://www.google.com/search?q%3Dsite:stackoverflow.com%2520show%2520my%2520ip%2520for%2520ssh%26hl%3Den&amp;gae=cb-none" class="basebutton hairlinebutton hideOnNormalWidth">Sign in</a></div></div><h1>Before you continue to Google</h1><div class="contentText"><p>We use <a href="https://policies.google.com/technologies/cookies?hl=en&utm_source=ucb" target="_blank">cookies</a> and data to</p><ul><li>Deliver and maintain Google services</li><li>Track outages and protect against spam, fraud, and abuse</li><li>Measure audience engagement and site statistics to understand how our services are used and enhance the quality of those services</li></ul><p>If you choose to “Accept all,” we will also use cookies and data to</p><ul><li>Develop and improve new services</li><li>Deliver and measure the effectiveness of ads</li><li>Show personalized content, depending on your settings</li><li>Show personalized ads, depending on your settings</li></ul><p>If you choose to “Reject all,” we will not use cookies for these additional purposes.</p><p>Non-personalized content is influenced by things like the content you’re currently viewing, activity in your active Search session, and your location. Non-personalized ads are influenced by the content you’re currently viewing and your general location. Personalized content and ads can also include more relevant results, recommendations, and tailored ads based on past activity from this browser, like previous Google searches. We also use cookies and data to tailor the experience to be age-appropriate, if relevant.</p><p>Select “More options” to see additional information, including details about managing your privacy settings. You can also visit g.co/privacytools at any time.</p></div><div class="saveButtonContainer"><form action="https://consent.google.com/save" method="POST" style="display:inline;"><input type="hidden" name="bl" value="boq_identityfrontenduiserver_20231205.05_p2"><input type="hidden" name="x" value="8"><input type="hidden" name="gl" value="CH"><input type="hidden" name="m" value="0"><input type="hidden" name="app" value="0"><input type="hidden" name="pc" value="srp"><input type="hidden" name="continue" value="https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&amp;hl=en"><input type="hidden" name="hl" value="en"><input type="hidden" name="uxe" value="none"><input type="hidden" name="cm" value="4"><input type="hidden" name="set_eom" value="true"><input type="submit" value="Reject all" class="basebutton button searchButton" aria-label="Reject all"/></form><form action="https://consent.google.com/save" method="POST" style="display:inline;"><input type="hidden" name="bl" value="boq_identityfrontenduiserver_20231205.05_p2"><input type="hidden" name="x" value="8"><input type="hidden" name="gl" value="CH"><input type="hidden" name="m" value="0"><input type="hidden" name="app" value="0"><input type="hidden" name="pc" value="srp"><input type="hidden" name="continue" value="https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&amp;hl=en"><input type="hidden" name="hl" value="en"><input type="hidden" name="uxe" value="none"><input type="hidden" name="cm" value="4"><input type="hidden" name="set_eom" value="false"><input type="hidden" name="set_sc" value="true"><input type="hidden" name="set_aps" value="true"><input type="submit" value="Accept all" class="basebutton button searchButton" aria-label="Accept all"/></form></div><div class="saveButtonContainerNarrowScreen"><form action="https://consent.google.com/save" method="POST" style="display:block;"><input type="hidden" name="bl" value="boq_identityfrontenduiserver_20231205.05_p2"><input type="hidden" name="x" value="8"><input type="hidden" name="gl" value="CH"><input type="hidden" name="m" value="0"><input type="hidden" name="app" value="0"><input type="hidden" name="pc" value="srp"><input type="hidden" name="continue" value="https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&amp;hl=en"><input type="hidden" name="hl" value="en"><input type="hidden" name="uxe" value="none"><input type="hidden" name="cm" value="4"><input type="hidden" name="set_eom" value="false"><input type="hidden" name="set_sc" value="true"><input type="hidden" name="set_aps" value="true"><input type="submit" value="Accept all" class="basebutton button searchButton" aria-label="Accept all"/></form><form action="https://consent.google.com/save" method="POST" style="display:block;"><input type="hidden" name="bl" value="boq_identityfrontenduiserver_20231205.05_p2"><input type="hidden" name="x" value="8"><input type="hidden" name="gl" value="CH"><input type="hidden" name="m" value="0"><input type="hidden" name="app" value="0"><input type="hidden" name="pc" value="srp"><input type="hidden" name="continue" value="https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&amp;hl=en"><input type="hidden" name="hl" value="en"><input type="hidden" name="uxe" value="none"><input type="hidden" name="cm" value="4"><input type="hidden" name="set_eom" value="true"><input type="submit" value="Reject all" class="basebutton button searchButton" aria-label="Reject all"/></form></div><div class="customButtonContainer"><a href="https://consent.google.com/dl?continue=https://www.google.com/search?q%3Dsite:stackoverflow.com%2520show%2520my%2520ip%2520for%2520ssh%26hl%3Den&amp;gl=CH&amp;hl=en&amp;cm=4&amp;pc=srp&amp;uxe=none&amp;src=1" class="basebutton nolinebutton">More options</a></div></div><div class="footer"><form action="https://consent.google.com/ml" method="get"><select id="languageselect" name="hl"><option value="af">Afrikaans</option><option value="az">azərbaycan</option><option value="bs">bosanski</option><option value="ca">català</option><option value="cs">Čeština</option><option value="cy">Cymraeg</option><option value="da">Dansk</option><option value="de">Deutsch</option><option value="et">eesti</option><option value="en-GB">English&nbsp;(United Kingdom)</option><option value="en" selected>English&nbsp;(United States)</option><option value="es">Español&nbsp;(España)</option><option value="es-419">Español&nbsp;(Latinoamérica)</option><option value="eu">euskara</option><option value="fil">Filipino</option><option value="fr-CA">Français&nbsp;(Canada)</option><option value="fr">Français&nbsp;(France)</option><option value="ga">Gaeilge</option><option value="gl">galego</option><option value="hr">Hrvatski</option><option value="id">Indonesia</option><option value="zu">isiZulu</option><option value="is">íslenska</option><option value="it">Italiano</option><option value="sw">Kiswahili</option><option value="lv">latviešu</option><option value="lt">lietuvių</option><option value="hu">magyar</option><option value="ms">Melayu</option><option value="nl">Nederlands</option><option value="no">norsk</option><option value="uz">o‘zbek</option><option value="pl">polski</option><option value="pt-BR">Português&nbsp;(Brasil)</option><option value="pt-PT">Português&nbsp;(Portugal)</option><option value="ro">română</option><option value="sq">shqip</option><option value="sk">Slovenčina</option><option value="sl">slovenščina</option><option value="sr-Latn">srpski (latinica)</option><option value="fi">Suomi</option><option value="sv">Svenska</option><option value="vi">Tiếng Việt</option><option value="tr">Türkçe</option><option value="el">Ελληνικ
 </option><option value="be">беларуская</option><option value="bg">български</option><option value="ky">кыргызча</option><option value="kk">қазақ тілі</option><option value="mk">македонски</option><option value="mn">монгол</option><option value="ru">Русский</option><option value="sr">српски</option><option value="uk">У
 раїнська</option><option value="ka">ქართული</option><option value="hy">հայերեն</option><option value="iw">עברית</option><option value="ur">اردو</option><option value="ar">العربية</option><option value="fa">فارسی</option><option value="am">
 ማርኛ</option><option value="ne">नेपाली</option><option value="mr">मराठी</option><option value="hi">हिन्दी</option><option value="as">অসমীয়া</option><option value="bn">বাংলা</option><option value="pa">ਪੰਜਾਬੀ</option><option value="gu">ગુજરાતી</option><option value="or">ଓଡ଼ିଆ</option><option value="ta">தமிழ்</option><option value="te">తెలుగు</option><option value="kn">ಕನ್ನಡ</option><option value="ml">മലയാളം</option><option value="si">සිංහල</option><option value="th">ไทย</option><option value="lo">ລາວ</option><option value="my">မြန်မာ</option><option value="km">ខ្មែរ</option><option value="ko">한국어</option><option value="ja">日本語</option><option value="zh-CN">简体中文</option><option value="zh-TW">繁體中文</option><option value="zh-HK">繁體中文&nbsp;(香港)</option></select><input type="hidden" name="oldhl" value="en"><input type="hidden" name="gl" value="CH"><input type="hidden" name="m" value="0"><input type="hidden" name="app" value="0"><input type="hidden" name="pc" value="srp"><input type="hidden" name="continue" value="https://www.google.com/search?q=site:stackoverflow.com%20show%20my%20ip%20for%20ssh&amp;hl=en"><input type="hidden" name="src" value="1"><input type="hidden" name="cm" value="4"><input type="submit" value="Change language"></form><a href="https://policies.google.com/privacy?hl=en&utm_source=ucb">Privacy Policy</a> <a href="https://policies.google.com/terms?hl=en&utm_source=ucb">Terms of Service</a></div></div></body></html>
ERROR: Sorry, couldn't find any help with that topic 

Using howdoi from the AUR:

❯ pacman -Q | grep howdoi
howdoi 2.0.20-2
@wasertech wasertech added the bug label Dec 10, 2023
@SamueleFacenda
Copy link

Same with the program installed from nix (latest version). The result page for me is the fullscreen google cookie consent request page(it's always asked the first time you use google).

@gleitz
Copy link
Owner

gleitz commented Dec 25, 2023

Are you in the US, or another country? I hear that people can get this error outside the US or from machines that don't have cookies set from Google.

@SamueleFacenda
Copy link

I'm in Italy, the european privacy regulation is very strict so probably this is the cause.

@gleitz
Copy link
Owner

gleitz commented Dec 25, 2023

Thanks for letting me know. If you can figure out a way to accept the cookies I would accept a pull request. It seems to impact many people.

@wasertech
Copy link
Author

wasertech commented Dec 26, 2023

I find using beautifulsoup is very unreliable as your search engine provider can break it at any moment. I had more luck in the past using hanapin + trafilatura + QALM in my WebSearch Domain for RASA but nowadays with LLMs, I just use GitHub Copilot CLI to do that with a few stupid simple aliases and some function in CodePilot.

❯ which howdoi
howdoi () {
        if [[ $# -eq 0 ]]
        then
                echo "Usage: howdoi <question>"
                return 1
        else
                gh copilot explain "How do I $@ ?"
        fi
        return 0
}
❯ howdoi show my ip for ssh

Welcome to GitHub Copilot in the CLI!
version 0.5.3-beta (2023-11-09)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve.

Explanation:                                                                    
                                                                                
  To display your IP address for SSH, you can run the following command:        
                                                                                
  • curl -s ifconfig.me: This uses curl to issue a web request to ifconfig.me and
  retrieves your public IP address. The -s flag is used to suppress the progress
  meter and only display the IP address.                                        
                                                                                
  Alternatively, you can use other services such as:                            
                                                                                
  • curl -s checkip.amazonaws.com: This uses curl to retrieve your public IP    
  address from the checkip.amazonaws.com service.                               
                                                                                
  Please note that these commands will display your public IP address, which    
  might be different from your local/private IP address within your network.

@ingles98
Copy link

ingles98 commented Jan 3, 2024

Hey, fellow European here, anyone has found a workaround?

@ingles98
Copy link

ingles98 commented Jan 3, 2024

Ok, after a bit of messing, I have a workaround.

Apparently google no longer cares about the CONSENT COOKIE, you want to use the SOCS one.

I edited the source code directly (do "which howdoi" and cat the path provided to check where the source is for your case)

On howdoi.py, line 182 _get_result(url) function, add a SOCS cookie from your own browser. I am unsure how ephemeral this cookie is so perhaps a better solution is needed, and one that is embedded upstream I guess.

All things considered, howdoi should not be expected to grab cookies from your browser as that would be potentially malicious behaviour, I will let the wizards work out their magic as to how to provide some functionality for us European cookie 🍪 nerds

@tin-ot
Copy link

tin-ot commented Apr 16, 2024

Hello,
As a workaround I fetch answers from duckduckgo instead of google.

export HOWDOI_SEARCH_ENGINE=duckduckgo

( btw in linux to get the current vm's ip : ip -br -4 a )

'wizards work out their magic' haha what does it mean ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants