gnome-gmail icon indicating copy to clipboard operation
gnome-gmail copied to clipboard

400 error returned from GMail API after clicking mailto: link in chrome, firefox

Open bleakstew opened this issue 9 years ago • 10 comments

I just installed gnome-gmail on Ubuntu 16.04. The installed menu launcher will successfully open a browser window to GMail. A terminal command of "gnome-gmail " also works. However, when I click on a mailto: link, I am sent to the window requesting permission to Manage drafts and send emails. When I click Allow, I get the following error:

Error returned from the GMail API - 400 bad request

Attempted on multiple email links in both Chrome and Firefox. Mailto links only contain the email address and no additional items like subject.

bleakstew avatar Jun 14 '16 20:06 bleakstew

The GMail API requires a well-formed mailto link - e,g, the difference between "gnome-gmail mailto:[email protected]" and "gnome-gmail mailto:joe". The latter will result in a 400 error.

What does the mailto link look like?

davesteele avatar Jun 15 '16 02:06 davesteele

That was it. The mailto: links were correct in the page, but my call to gnome-gmail in my preferred applications was malformed.

I had this listed to respond to the mailto: link

gnome-gmail %U "%s"

What I needed to have was this:

gnome-gmail %s

The extra argument was messing up the call.

Thanks for the help!

On Tue, Jun 14, 2016 at 9:30 PM, David Steele [email protected] wrote:

The GMail API requires a well-formed mailto link - e,g, the difference between "gnome-gmail mailto:[email protected] [email protected]" and "gnome-gmail mailto:joe ". The latter will result in a 400 error.

What does the mailto link look like?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-226071921, or mute the thread https://github.com/notifications/unsubscribe/APy_p3v6eYwf6BqRFGmcKm8CMglJXTsLks5qL2OqgaJpZM4I1t7o .

bleakstew avatar Jun 15 '16 02:06 bleakstew

I am having this problem with Chrome with well formed email links. I tried the version in the 16.04 repository and the newer gnome-gmail_2.1-1+ppa1_all.deb. Same result. Interestingly, although I used apt-get to purge each version, the 16.04 package manager thinks gnome-gmail is still installed.

I did not have this problem when using 14.04

bootedguy avatar Jun 22 '16 17:06 bootedguy

Can you refer me to the link?

davesteele avatar Jun 22 '16 17:06 davesteele

The names on this page http://svcentreville.squarespace.com/governance2 are email links.

John

On 22 June 2016 at 13:28, David Steele [email protected] wrote:

Can you refer me to the link?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-227817396, or mute the thread https://github.com/notifications/unsubscribe/ATKg_oHTuZNxmXKK45TkJd7fagGhTKhKks5qOXDKgaJpZM4I1t7o .

My humanity is bound up in yours, for we can only be human together.

  • Desmond Tutu

bootedguy avatar Jun 22 '16 17:06 bootedguy

They work for me, across versions.

One other thing to consider. Are you logged into more than one Google account? It may be confused about which account is which.

davesteele avatar Jun 23 '16 12:06 davesteele

With all the installs and re-installs, my laptop began having issues (I am using a 2013 Dell XPS developer edition). I finally did a clean, from scratch, reinstall of 16.04, and tried again. Now when I click on an email link, the "wizard" for setting up Thunderbird pops up, so no joy. Gmail has never let me log into more than one account at the same time, so that is not the issue.

I this point I am giving up on gnome-gmail, but thanks for looking at my issue.

John Schultz

On 23 June 2016 at 08:24, David Steele [email protected] wrote:

They work for me, across versions.

One other thing to consider. Are you logged into more than one Google account? It may be confused about which account is which.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-228033847, or mute the thread https://github.com/notifications/unsubscribe/ATKg_pMTWM_tN9BY9RjNMij65E5rusKQks5qOnsWgaJpZM4I1t7o .

My humanity is bound up in yours, for we can only be human together.

  • Desmond Tutu

bootedguy avatar Jun 23 '16 12:06 bootedguy

You might want to try one more thing. If gnome-gmail is installed, it will check for preferred handler status with each login, and prompt if you want gg to handle your outgoing mail. Or, just run gnome-gmail from the command line for the same effect.

davesteele avatar Jun 23 '16 13:06 davesteele

I tried logging out of Gmail, even did a restart with no change. I also tried the command line, again no change, but I did get this:

schultz@xps:~$ gnome-gmail Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

John

On 23 June 2016 at 09:45, David Steele [email protected] wrote:

You might want to try one more thing. If gnome-gmail is installed, it will check for preferred handler status with each login, and prompt if you want gg to handle your outgoing mail. Or, just run gnome-gmail from the command line for the same effect.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-228054526, or mute the thread https://github.com/notifications/unsubscribe/ATKg_t-geRAGnd9BeXNQaVUk8ofN5wIfks5qOo30gaJpZM4I1t7o .

My humanity is bound up in yours, for we can only be human together.

  • Desmond Tutu

bootedguy avatar Jun 23 '16 14:06 bootedguy

That's the problem with kids these days: not enough transient parents. On Jun 23, 2016 9:02 AM, "bootedguy" [email protected] wrote:

I tried logging out of Gmail, even did a restart with no change. I also tried the command line, again no change, but I did get this:

schultz@xps:~$ gnome-gmail Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

John

On 23 June 2016 at 09:45, David Steele [email protected] wrote:

You might want to try one more thing. If gnome-gmail is installed, it will check for preferred handler status with each login, and prompt if you want gg to handle your outgoing mail. Or, just run gnome-gmail from the command line for the same effect.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-228054526 , or mute the thread < https://github.com/notifications/unsubscribe/ATKg_t-geRAGnd9BeXNQaVUk8ofN5wIfks5qOo30gaJpZM4I1t7o

.

My humanity is bound up in yours, for we can only be human together.

  • Desmond Tutu

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davesteele/gnome-gmail/issues/38#issuecomment-228059482, or mute the thread https://github.com/notifications/unsubscribe/APy_p0iCDgSE5iLjdLQVB-GWtDL-ULCGks5qOpHPgaJpZM4I1t7o .

bleakstew avatar Jun 23 '16 14:06 bleakstew