Suddenly getting "Error: deleted_client The Oath client was deleted." I've deleted nothing. What's going on?

894 views
Skip to first unread message

Matt Curtis

unread,
Sep 3, 2018, 5:48:22 PM9/3/18
to Google Cloud Developers
Full error:

401. That’s an error.
Error: deleted_client
The OAuth client was deleted.
 
Request Details
  • response_type=code
  • code_challenge_method=S256
  • code_challenge=hxueCwCcXEeAcku1rgsNJkK_tFq4mC05WAl0zM1h0ZU
  • redirect_uri=com.googleusercontent.apps.334861613077-sc5cd3rs7pl06c4jom8ev2pr4c703l1k:/oauthredirect
  • state=HVEXR1ssQ2qTi8x78WxKqAHCeYg8uzxvGsaDqXlXw8o

That’s all we know.

Ali T (Cloud Platform Support)

unread,
Sep 4, 2018, 4:36:40 PM9/4/18
to Google Cloud Developers
Could you please specify if this is your own application or one you are attempting to access? This message occurs when the application which you are attempting to connect to uses a client id generated by Google Developers which has been deleted. 

If this is your application, you will need to generate a new client id and recompile your application[1]. Otherwise, if this is an external application you are trying to connect to, you will need to contact the developer of said application.   

Matt Curtis

unread,
Sep 4, 2018, 5:47:21 PM9/4/18
to Google Cloud Developers
It's my own application. Why would my client id be deleted without warning? Very frustrating, especially as this is a problem I did not cause. Is it possible to recreate the id without having to recompile?

Ali T (Cloud Platform Support)

unread,
Sep 5, 2018, 6:04:10 PM9/5/18
to Google Cloud Developers

Making some additional research about this issue, there seem to be varying degrees as to what was deleted. As this error message has also been displayed for people with their whole project deleted, If the project was deleted as a whole, you can recover it through the steps outlined in this documentation[1].


Moreover to use it without recompiling, I found a Stack Overflow thread which covers a similar issue[2]. Although this is not a solution verified by Google Cloud, it has been upvoted and referred to in other threads. You can generate a new one by going on the APIs & Services[3] section of your Google Cloud Platform, click the “Create Credentials” button and specifying your application type. Once added to your GoogleService-Info.plist file and your URLschemes, this should solve the issue.


Regarding it being deleted by itself, this is not something that is supposed to occur. Although you may have not deleted, can you confirm whether someone else has access to your project resources? This might be accidently modified by another party.


If all of the above fail to work and no one has made modifications to the Oauth client, I would strongly recommend you file a bug[4] to further look into this issue.


[1] https://cloud.google.com/resource-manager/docs/creating-managing-projects?hl=en&visit_id=636717796743030355-69880851&rd=1#restoring_a_project

[2] https://stackoverflow.com/questions/20253508/errorinvalid-client-the-oauth-client-was-deleted-even-after-having-undeleted

[3] https://console.cloud.google.com/apis/credentials

[4] https://issuetracker.google.com/
Reply all
Reply to author
Forward
0 new messages