Skip to content

Can't make Gmail.User.start_mail() work #18

Description

@silvagustin

Hi! I'm trying to use this dependency and after setting everything up and running:
{:ok, pid} = Gmail.User.start_mail(user_email, user_refresh_token)

I got the following error:
** (MatchError) no match of right hand side value: {:error, {:function_clause, [{Gmail.OAuth2, :do_refresh_access_token, [%{}, "1//04ml-27by0C3PCgYIARAAGAQSNwF-L9Irco4pMbDE1fJWAG38b-LpVPd-sfm9V9Fr6-3Xk-0Ecp883KXO40eANwViDYqCW3klUWU"], [file: 'lib/gmail/oauth2.ex', line: 53]}, {Gmail.OAuth2, :refresh_access_token, 1, [file: 'lib/gmail/oauth2.ex', line: 34]}, {Gmail.User, :init, 1, [file: 'lib/gmail/user.ex', line: 20]}, {:gen_server, :init_it, 2, [file: 'gen_server.erl', line: 417]}, {:gen_server, :init_it, 6, [file: 'gen_server.erl', line: 385]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}}

Is this still working?

Cheers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions