Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Precondition Failed when unenrolling a device #104

Open
StephaneConq opened this issue Apr 24, 2020 · 2 comments
Open

Precondition Failed when unenrolling a device #104

StephaneConq opened this issue Apr 24, 2020 · 2 comments
Labels
question Further information is requested

Comments

@StephaneConq
Copy link

Hi,

When I try to delete a specific Device, I have the message that it somehow works, but it is still in the database and still in the device list.
I also tried deleting it directly from Datastore, but it keeps coming back for some reason.
By the way, this device is locked, but when I try to unlock it, I have an error :
Directory API call to reenable Chrome device failed with a <class 'googleapiclient.errors.HttpError'> exception because Precondition Failed

This occurs here

Any idea of what the cause is ?

@StephaneConq
Copy link
Author

Also, by doing the same action with the 'Try it yourself' on the API reference documentation, we have this error :

{
	"error": {
		"errors": [{
			"domain": "global",
			"reason": "conditionNotMet",
			"message": "Delinquent account.",
			"locationType": "header",
			"location": "If-Match"
		}],
		"code": 412,
		"message": "Delinquent account."
	}
}

@helfrichmichael
Copy link
Member

I think I might need a little more context on the journey for what you're trying to do to make sure I guide you down the right path.

One thing worth noting is when you unenroll a device, it will remain in datastore, but with the enrolled field set to false. You shouldn't delete this from Datastore probably unless it is somehow causing an issue.

You could additionally try clearing the device index and then reindexing it to see if that remediates (can do this via the Configuration view in the web app).

@helfrichmichael helfrichmichael added the question Further information is requested label Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants