Google Mail API Error: 'Account has been deleted error' - gmail-api

When we try to get a accessToken for a user for the Google Mail API via the https://www.googleapis.com/oauth2/v3/token endpoint we get an error
'Account has been deleted error'.
This works fine for all users but one. Before last week also for this user everything worked find. When I check the Users in de Google Workspace Admin Console the user and email address still exists and is active.
What can be the cause of this error?
We tried the same with other users in the organisation and these work just fine.

Related

Salesforce authentication failing even after extending same password by changing the setting on Salesforce

Salesforce token end point was working fine previously but recently it's password got expired. I asked SF team to extend the same password and after that I am able to login to SF portal and able to get SF access token using same password and security token by postman.
But when my prod application is making calls to SF it still gives same error message:
This session could not be mutually authenticated for use with the REST API","errorCode":"MUTUAL_AUTHENTICATION_FAILED"
Could you please help me that why after extending the same password (by changing some setting in sf) when the .net core application hit it, its getting same error message. Does it got cashed and SF service need to be restarted???

DocuSign Rest API login issue

I get JSON response {"errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT", "message": "The specified User is not a member of the specified Account."} when we deployed application on a new SF sandbox with a different DocuSign account. Obviously I have changed the user/password and integration key for the new account. And after I make token request I get access token back, but I can not make post request due to above.
Can you guys help me understand why is this?
Users who want to send documents need a DocuSign account. It sounds like you've changed the username and password credentials however it is still pointing to the previous account hence the error. To resolve you need to update the integration to point to the new account.

Gmail API - Wrong exception fired when user's Gmail account is disabled

I'm working on a C# project that use Gmail API in single-user mode to retrieve user's mail. The application is working nicely.
Recently, we got a strange behavior from this API. When the user hasn't a #gmail account with Gmail disabled and try to use our product, for some we got a "Bad Request 400" with "Mail service not enabled" exception and for other users, we got "Bad Request 400" with "failedPrecondition" exception.
The users are on the same domain name. I searched through Gmail API documentation and I found nothing that can explain this.
Our thoughts are that maybe some users have different settings in their Google account that can cause the "general" "failedPrecondition".
Any advice?
Thanks

Ubercart unable to send email

Upon completion of checkout I am getting the error message unable to send email: contact-site administrator if the problem persists. When I check the dblog I get full error message is Error sending e-mail (from Site Name <nameA#site.com> to nameA#site.com).. It seems to me that the problem could be related to the fact they they are trying to send the email to the same person as it is from.
What baffles me about this is that I am logged in as the administrator and it's my email as the site administrator and nameA is listed as the email on the store configurations.
The webform email is working fine (I am using the SMTP module)
It turns out that my issue was with the SMTP authentication configuration. Once I got that straightened out and change the site administration email to match that on the SMTP authentication configuration it worked just fine.

gaesession on Google App Engine with Python: KeyError?

I used gaesessions on Google App Engine with Python to handle user login sessions. The following are some of my codes:
When a user logs in:
from gaesessions import get_current_session
...
session = get_current_session()
if session.is_active():
session.terminate()
session['account'] = account
# Do some stuff to log the user in
When the user logs out:
session = get_current_session()
account = session['account']
# Do some stuff to log the user out
The above codes worked just fine most of the time, except that sometimes (very rarely, maybe once in a month) GAE complained about the statement account = session['account'] when the user logs out with the error message: KeyError: 'account' I wonder if anybody has encountered the same problem?
BTW, I also clean up expired sessions as below. Is it necessary? (I have no idea when a session goes expired) Or could it be the cause of the problem? Thanks.
while not delete_expired_sessions():
pass
Your session dictionary doesn't have the account key set to anything. This could be that a request runs your logout method without being logged in. This could happen by someone who is not logged in, yet visits your logout handler.
Eg. A user requests yourwebsite.com/logout without being actually logged in yet.

Resources