Can't delete email from secondary gmail account
The extension works perfectly for my primary gmail account. But when a mail arrives to my secondary account, then I can't do anything from gmail notifier. If I click delete or mark as read or anything nothing happens.
Is this on Chrome? The second account is "@gmail"?
Is this on Chrome? The second account is "@gmail"?
I'm on firefox. And yes, all my email accounts are on gmail.
Open "about:debugging#/runtime/this-firefox" in a browser tab, then use "Inspect" button to check logs while deleting on the second account. Maybe we can find the issue there. You should have a gmail.action command with the URL of the message to be deleted.
This is what I see when I open the notifier popup:
[offscreen iframe] request Object { cmd: "gmail.search", request: {…} } index.js:52:13 SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data search moz-extension://c3369518-7075-4bbd-983c-7eef7fa1986b/core/offscreen/gmail/core.js:122 async* moz-extension://c3369518-7075-4bbd-983c-7eef7fa1986b/core/offscreen/index.js:84 index.js:85:17 [offscreen iframe] exit request 0 index.js:6:11 Object { message: "JSON.parse: unexpected character at line 1 column 1 of the JSON data" } worker.js:127:17 undefined labels.js:52:15 [repeater] Reason: "webrequest" Type: "now" Delay: 1.00s log.js:29:11 update is rejected; duplicated labels.js:73:17 [repeater] Reason: "alarm.fired" Type: "fired" Delay: 120.00s log.js:29:11 [feed] forced false objects Array(3) [ {…}, {…}, {…} ]
This is when i click on delete email: [offscreen iframe] request Object { cmd: "gmail.action", request: {…} } index.js:52:13 [offscreen iframe] exit request 0 index.js:6:11 [repeater] Reason: "popup.action" Type: "now" Delay: 0.50s log.js:29:11 [repeater] ignored 1 log.js:29:11 [repeater] ignored 501 log.js:29:11 [repeater] Reason: "alarm.fired" Type: "fired" Delay: 120.00s log.js:29:11 [feed] forced false objects Array(3) [ {…}, {…}, {…} ]
This is what I see in the gmail.action
Object { cmd: "gmail.action", request: {…} }
cmd: "gmail.action"
id: "gmail.action;0.6195583521981839"
request: Object { method: "gmail.action", cmd: "tr", links: "https://mail.google.com/mail/u/[email protected]&message_id=198546439e516900&view=conv&extsrc=atom", … }
Can I give you some more infos?
The /u/2/ is wrong and belongs to the third account! Go to the options page and set label inbox for the first two accounts and see if the log report changes from
links: "...u/2..."
to
links: "...u/1..."
Also please see what script this is from:
index.js:52:13 SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I'm sorry, it's correct. It is my third account :(
does the extension work for the second account?
yes, the second account works
Also please see what script this is from:
index.js:52:13 SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
The row is changed, I don't know why. Now it says:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
search moz-extension://c3369518-7075-4bbd-983c-7eef7fa1986b/core/offscreen/gmail/core.js:122
async* moz-extension://c3369518-7075-4bbd-983c-7eef7fa1986b/core/offscreen/index.js:84
index.js:85:17
It's the gmail.search command
else if (request.cmd === 'gmail.search') { gmail.search(request.request).then(response).catch(e => { console.error(e); response({ message: e.message });
To determine whether the issue is related to the account or the orders, please log out of all accounts and try logging in again in a different order.
Ok, I exchanged the order for second and third email. Not it's the second account that doesn't work. The one that didn't work even before when it was third. Can you tell me which gmail settings do I have to check?
It looks fine to me! Do you have the "conversion view off" for this account?
It looks fine to me! Do you have the "conversion view off" for this account?
It's activated on all my email accounts. I tried to turn it off but I have the same problem.
About my screenshot, is it normal that gmail answer with that content? <scr "https://mail.google.com/mail/u/1/spreauth"
Seems like it's a weird response to me...
Open the following basic views and see if you need to login again or not:
https://mail.google.com/mail/u/0/h/ https://mail.google.com/mail/u/1/h/ https://mail.google.com/mail/u/2/h/
I tried to turn it off but I have the same problem.
The notifier does not work correctly if it is off.
I have the same problem with the chrome extension. So it's definitely my account's problem. But I don't know what to look for...
Debugging this issue can be challenging. As a suggestion, try marking a thread as 'read' from the main Gmail UI and then undo it. Next, perform the same action through the extension. Capture both POST requests in DevTools and compare them to identify any missing parameters.
I tried but the call that is made by gmail itself and the notifier are totally different. You're request is a GET, gmail is doing a POST with a complex payload. I really don't get it.
The extension performs POST request. See
https://github.com/inbasic/ignotifier/blob/master/v3.classic/core/offscreen/gmail/core.js#L222
Install the extension in the developer mode on Chrome. Then increase the hard-coded timeout to exit the offscreen document https://github.com/inbasic/ignotifier/blob/master/v3.classic/core/offscreen/index.js#L13
Now perform a "mark as read" in both Gmail interface and the extension and compare the POST requests.
I have exactly the same problem. Only two of my accounts will allow me to delete emails from the notifier.
@flybd5 do you get any error? What is shown in the background log tab
Also on the background terminal try the following to see if the extension has access to the GMAIL_AT for the secondary account
chrome.cookies.get({name: 'GMAIL_AT', url: 'https://mail.google.com/mail/u/1'}, o => {
console.log(o);
});
Note that /mail/u/1 must be equal to the Gmail index for the account that is not working