Ferdi: Regression – Google: Couldn't sign you in

Created on 10 Jun 2020  Â·  11Comments  Â·  Source: getferdi/ferdi

Screenshots
image

Environment:

  • Operating System: macOS Mojave
  • Ferdi Version: 5.5.0
  • Server: Using without an account
[Status] Stale bug

All 11 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@BinaryShrub can you share your Google Recipe's index.js file? It shoud look something like below

var os = require("os");

module.exports = (Franz) =>
  class Gmail extends Franz {
    modifyRequestHeaders() {
      return [
        {
          headers: {
            "user-agent": window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, "").trim(),
          },
          requestFilters: {
            urls: ["*://*/*"],
          },
        },
      ];
    }
  };

Same issue, with the above index.js file @mahadevans87
I remember this being fixed with a change to index.js, which then had to be switched to this to fix the popup issue. Now I can't log in.

To log in I had to:

  1. Change index.js to
module.exports = Franz =>
  class Gmail extends Franz {
    overrideUserAgent() {
      return "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0";
    }
  };

and reload ferdi

  1. Delete service
  2. Re-add service
  3. Log in
  4. Change index.js back to
var os = require("os");

module.exports = (Franz) =>
  class Gmail extends Franz {
    modifyRequestHeaders() {
      return [
        {
          headers: {
            "user-agent": window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, "").trim(),
          },
          requestFilters: {
            urls: ["*://*/*"],
          },
        },
      ];
    }
  };

to fix popup blocker

@CptDinosaur what google recipe is this? Gmail?

Yes, gmail. On 5.6.0-beta.2

Can you help me reproduce this? For some reason, I cannot reproduce this in 5.6.0-beta.1

Occurs on a fresh install of 5.6.0-beta.2 with appdata/roaming/ferdi deleted when getting gmail service.
Happens after typing in email.

I'm on Windows 10 x64 build 2004

Video

index.js is the default:

var os = require('os')

module.exports = Franz =>
  class Gmail extends Franz {
    modifyRequestHeaders() {
      return [
        {
          headers: {
            'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(),
          },
          requestFilters: {
            urls: ['*://*/*'],
          }
        }
      ]
    }
  };

Awesome. will take a look later today.

This issue has been automatically marked as stale because it has not had recent activity. Please check if this issue is still relevant and please close it if it's not. This will make sure that our open issues are actually of use and reduce the list of obsolete issues. Thank you for your contributions.

Am still having this issue on the "Fredi Todo" section. Am not able to use Google login for any for the provided Todo services.
My version 5.5.0 on Ubuntu.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maciesse picture maciesse  Â·  3Comments

probablykasper picture probablykasper  Â·  4Comments

ammarmalhas picture ammarmalhas  Â·  3Comments

kytwb picture kytwb  Â·  3Comments

sschaefa picture sschaefa  Â·  3Comments