ignotifier icon indicating copy to clipboard operation
ignotifier copied to clipboard

Cannot get "at" from the base page

Open DeaD3R opened this issue 4 years ago • 27 comments
trafficstars

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

DeaD3R avatar Oct 09 '21 10:10 DeaD3R

Also on Chrome.

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

cevznriny avatar Oct 10 '21 07:10 cevznriny

Same story, starts 2 days ago

AlexSus avatar Oct 11 '21 01:10 AlexSus

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

DeaD3R avatar Oct 11 '21 07:10 DeaD3R

Also having this issue

TheMadog24 avatar Oct 11 '21 21:10 TheMadog24

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

gakun17 avatar Oct 12 '21 02:10 gakun17

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.

tam8 avatar Oct 12 '21 11:10 tam8

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

Bugrakca avatar Oct 12 '21 12:10 Bugrakca

Same issue, 94.0b4 (64 bit)

nickv-getcodified avatar Oct 12 '21 13:10 nickv-getcodified

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

affinage avatar Oct 12 '21 14:10 affinage

I'm having the same problem

hotchili avatar Oct 12 '21 14:10 hotchili

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.

dwhwang avatar Oct 12 '21 14:10 dwhwang

The same. Firefox 93.0 (64-bit)

BlackJackDaniels avatar Oct 12 '21 15:10 BlackJackDaniels

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

juanrafaelgomez avatar Oct 12 '21 16:10 juanrafaelgomez

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

adrianiepure avatar Oct 12 '21 17:10 adrianiepure

Same issue on Waterfox G3

Avrution avatar Oct 12 '21 17:10 Avrution

same on firefox 93 on win11 x64

Remonli avatar Oct 12 '21 18:10 Remonli

Started today, firefox 94 on debian

santicalvo avatar Oct 12 '21 18:10 santicalvo

Same, firefox 93 32bit Debian.

thevladsoft avatar Oct 12 '21 19:10 thevladsoft

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

YoshkaPundrik avatar Oct 12 '21 20:10 YoshkaPundrik

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

Shadoefax avatar Oct 12 '21 22:10 Shadoefax

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

tam8 avatar Oct 12 '21 23:10 tam8

Same here

m5g avatar Oct 13 '21 02:10 m5g

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.

jmuollo avatar Oct 13 '21 04:10 jmuollo

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

santicalvo avatar Oct 13 '21 06:10 santicalvo

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

Shadoefax avatar Oct 13 '21 09:10 Shadoefax

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]);
          }

4javier avatar Oct 13 '21 09:10 4javier

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

KarinaAnoshko avatar Oct 13 '21 09:10 KarinaAnoshko

I'm closing this since it seems to be fixed

DeaD3R avatar Mar 14 '23 18:03 DeaD3R