inbasic / ignotifier

Multiple account Gmail notifier (without storing passwords)
https://webextension.org/listing/gmail-notifier.html
Other
390 stars 116 forks source link

Cannot get "at" from the base page #590

Closed DeaD3R closed 1 year ago

DeaD3R commented 2 years ago

gm

I get this when trying any action from the extension window: delete, mark as read, archive. Always get this notification and the action doesn't happen.

Started yesterday, reinstalling extension doesn't fix it.

On different profile it works as it should, so some setting from my profile possibly started affecting it yesterday. Any way to troubleshoot?

Firefox 93.0, Windows 10

cevznriny commented 2 years ago

Also on Chrome.

Win10, Chrome 94.0.4606.71 (Official Build) (64-bit)

AlexSus commented 2 years ago

Same story, starts 2 days ago

DeaD3R commented 2 years ago

I started using "Checker Plus for Gmail™". Seems to work well.

TheMadog24 commented 2 years ago

Also having this issue

gakun17 commented 2 years ago

Same here, Firefox 93.0 (64-bits), Windows 10 20H2.

tam8 commented 2 years ago

I also got up several times. Clearing Chrome's cache or reinstalling the extension may help, but No matter what I do this time, it won't heal.

Bugrakca commented 2 years ago

Same issue, Firefox 93.0 (64 bit), Win10 21H1

nickv-getcodified commented 2 years ago

Same issue, 94.0b4 (64 bit)

affinage commented 2 years ago

same here. firefox 91.0.1 (64-bit) @ mac os 10.13.4

hotchili commented 2 years ago

I'm having the same problem

dwhwang commented 2 years ago

I just got the same issue. Chrome 94.0.4606.81 (Official Build) (64-bit) Extension 1.0.4 from Chrome Store.

I open the inspect view in console and gmail.js is getting response 404. Any action on the extension (open, delete, mark as read, …) will produce the 2 error message:

gmail.js:42 GET https://mail.google.com/mail/u/0/h/1h3boqwbz4jzf/?zy=h&view=cs&f=1 404
(anonymous) @ gmail.js:42
gmail.at.get @ gmail.js:40
gmail.action @ gmail.js:147
(anonymous) @ common.js:502

gmail.js:13 GET https://mail.google.com/mail/u/2/h/1h3boqwbz4jzf/?zy=h&view=cs&f=1 404
(anonymous) @ gmail.js:13
gmail.fetch @ gmail.js:5
(anonymous) @ gmail.js:51
Promise.then (async)
(anonymous) @ gmail.js:44
gmail.at.get @ gmail.js:40
gmail.action @ gmail.js:147
(anonymous) @ common.js:502

Hope this can help identify the problem.

BlackJackDaniels commented 2 years ago

The same. Firefox 93.0 (64-bit)

juanrafaelgomez commented 2 years ago

Same here Firefox 94.0b4 (64-bit), Windows Version 10.0.19042.1237

adrianiepure commented 2 years ago

Same here on Firefox 93.0 (64-bit), Windows 10 Version 21H1 (OS Build 19043.1266)

Avrution commented 2 years ago

Same issue on Waterfox G3

Remonli commented 2 years ago

same on firefox 93 on win11 x64

santicalvo commented 2 years ago

Started today, firefox 94 on debian

thevladsoft commented 2 years ago

Same, firefox 93 32bit Debian.

YoshkaPundrik commented 2 years ago

Same. Firefox 90.0.2 (64 bit), Win10 21H1, Notifier for Gmail™ v1.0.4

Shadoefax commented 2 years ago

Same here.

Starting today, I can no longer delete or archive emails from the Gmail Notifier dropdown window.

I've tried rebooting, logging out/in of all Gmail accounts and re-installing Gmail™ Notifier, but still have the problem.

Gmail™ Notifier v1.0.4 Fx v93.0 (64-bit) (also running v56.0.2 (64-bit)) Windows 10

tam8 commented 2 years ago

I was able to use it temporarily when I changed my Gmail account, I can no longer use that account.

m5g commented 2 years ago

Same here

jmuollo commented 2 years ago

I have two gmail accounts, a personal one and a work one. I can mark my person emails as 'read' fine using the plugin. However when I try to mark my work emails as 'read', I get the cannot get "at" from the base page error.

santicalvo commented 2 years ago

It has "magically" started to work again... Let's see if it continues working...

Shadoefax commented 2 years ago

Started working here, too. Must have just been a Google brain fart...

4javier commented 2 years ago

It started working again because Google made available again https://mail.google.com/mail/?ui=html redirecting to the proper own page (through ID token, I suppose). Until this morning it was returning 404, and the ui param to get the "Classic View" of the account was working only for the redirected url. I don't know why this extension use this clumsy system to generate the token, but surely relying on that view and parsing the HTML to get the ID will always be a brittle solution.

 return new Promise((resolve, reject) => {
      const blind = 'https://mail.google.com/mail/?ui=html&zy=h';
      fetch(blind, {
        credentials: 'include'
      }).then(r => r.url).then(href => {
        if (href.indexOf('/u/') === -1) {
          return reject(Error('cannot find basic HTML view from the blind URL'));
        }
        const id = url.split('/u/')[1].split('/')[0];
        const base = href.replace(/\/u\/\d+/, '/u/' + id);

        gmail.fetch(base).then(r => r.text()).then(content => {
          const parser = new DOMParser();
          const doc = parser.parseFromString(content, 'text/html');

          const e = doc.querySelector('a[href*="at="]');
          const input = doc.querySelector('[name="at"]'); // do you really want to use this view
          if (e) {
            const args = new URLSearchParams(e.href.split('?')[1]);
            const at = args.get('at');
            if (!at) {
              reject(Error('cannot extract "at" from the base page'));
            }
            token[url] = {
              at,
              base,
              date: Date.now()
            };
            resolve(token[url]);
          }
KarinaAnoshko commented 2 years ago

I ran into the same issue. Notifier version 1.0.4 Firefox version: 93.0 Ubuntu 18.04 and Ubuntu 16.04.

DeaD3R commented 1 year ago

I'm closing this since it seems to be fixed