divinites / oauth-mail

A light-weight email agent for Sublime Text 3
6 stars 1 forks source link

Redirect url doesn't match #5

Closed Aya-Yang closed 8 years ago

Aya-Yang commented 8 years ago

I use sublime text 3, and I followed the instruction to configure gmail, but when I used the command "send_mail", it turned out to be a 400 error, and showed "Redirect url doesn't match"

divinites commented 8 years ago

Hi, Thanks for your feedbacks.

Could you please tell me whether you are using a client_secret file or you explicitly fill in client_id and client_secret in the sublime_setting file?

If would also be helpful to paste the information displayed in the command console. The default Redirect_url is http://localhost:10111

Aya-Yang commented 8 years ago

image 2016-04-17 10 00 31 I added the default Redirect_url in my google app, and it worked, but when I used the command Send E-mail.it would always ask for authorization

divinites commented 8 years ago

That's weird, since when the authentication process is supposed to run once and store the value in the Packages/Users/QuickMail.cache, could you please check if you have this folder in $(your sublime text package folder)/Users?

Aya-Yang commented 8 years ago

I can't find that folder

divinites commented 8 years ago

Okay, thanks. I think I need to look at the code to find possible bugs. will get back to you soon!

divinites commented 8 years ago

sorry, I cannot replicate this bug based on the information that you provided, issue closed at this moment, if you have any update, please do not hesitate to re-open this issue.