You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the below error on authenticating a Gmail user in my app, P.S: I have client-id and client-secret stored in a file from GCP project.
File "/venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 240, in fetch_token return self.oauth2session.fetch_token( File "/venv/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 341, in fetch_token r = self.request( File "/venv/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 521, in request return super(OAuth2Session, self).request( File "/venv/lib/python3.9/site-packages/requests/sessions.py", line 515, in request prep = self.prepare_request(req) File "/venv/lib/python3.9/site-packages/requests/sessions.py", line 443, in prepare_request p.prepare( File "/venv/lib/python3.9/site-packages/requests/models.py", line 322, in prepare self.prepare_auth(auth, url) File "/venv/lib/python3.9/site-packages/requests/models.py", line 558, in prepare_auth r = auth(self) File "/venv/lib/python3.9/site-packages/requests/auth.py", line 96, in __call__ r.headers['Authorization'] = _basic_auth_str(self.username, self.password) File "/venv/lib/python3.9/site-packages/requests/auth.py", line 60, in _basic_auth_str username = username.encode('latin1') UnicodeEncodeError: 'latin-1' codec can't encode character '\u0335' in position 19: ordinal not in range(256)
The text was updated successfully, but these errors were encountered:
requests/requests/auth.py
Line 60 in 79f6027
I got the below error on authenticating a Gmail user in my app, P.S: I have client-id and client-secret stored in a file from GCP project.
File "/venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 240, in fetch_token return self.oauth2session.fetch_token( File "/venv/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 341, in fetch_token r = self.request( File "/venv/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 521, in request return super(OAuth2Session, self).request( File "/venv/lib/python3.9/site-packages/requests/sessions.py", line 515, in request prep = self.prepare_request(req) File "/venv/lib/python3.9/site-packages/requests/sessions.py", line 443, in prepare_request p.prepare( File "/venv/lib/python3.9/site-packages/requests/models.py", line 322, in prepare self.prepare_auth(auth, url) File "/venv/lib/python3.9/site-packages/requests/models.py", line 558, in prepare_auth r = auth(self) File "/venv/lib/python3.9/site-packages/requests/auth.py", line 96, in __call__ r.headers['Authorization'] = _basic_auth_str(self.username, self.password) File "/venv/lib/python3.9/site-packages/requests/auth.py", line 60, in _basic_auth_str username = username.encode('latin1') UnicodeEncodeError: 'latin-1' codec can't encode character '\u0335' in position 19: ordinal not in range(256)
The text was updated successfully, but these errors were encountered: