Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrOS orgUnitPath change yields: Invalid Input: Inconsistent Orgunit id and path in request (Google API Bug?) #225

Closed
funar opened this issue Dec 9, 2021 · 34 comments

Comments

@funar
Copy link

funar commented Dec 9, 2021

When attempting the following (redacted) command:
gam update cros xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx ou /Some/OU

The response:
Organizational Unit: /Some/OU, CrOS Device: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - yyyyyyyyyyyyyyy, /Some/OU

"yyyy..." is a long integer, not the actual OU's ID as returned by Google.

I originally noticed this error in a system I've written that is not related to GAM at all, but GAM is affected as well. I suspect something at Google changed with the update/patch call to CrOS units' orgUnitPath

Google searches point to a similar response back in 2015. Really old regression on Google's part?

@taers232c
Copy link
Owner

taers232c commented Dec 9, 2021 via email

@funar
Copy link
Author

funar commented Dec 9, 2021

I sent the redacted output directly.

@taers232c
Copy link
Owner

Organizational Unit: /DeprovisionedChromebooks, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com\r\nContent-Length: 868\r\ncontent-type: multipart/mixed; boundary="===============5496212009904445431=="\r\nuser-agent: GAMADV-XTD3 6.11.03 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs <ross.scroggs@gmail.com> / Python 3.10.1 final / macOS-10.13.6-x86_64-i386-64bit x86_64 /\r\nauthorization: Bearer ya29.a0ARrdaM9jK3FEcrtJOJiC1Gspr3DIxSdK0SY6dFUij2YidQO6d51JiBFIlE_Dqm6-aouJ_NLg6eSgFv7ppqKxkI_ITfT_ciVwdYAwz1atNDmMR1AKx7R9u2uY1kVOf_COMll2rSBFu2zdm3i34Bj9Lic0ySv8pA\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============5496212009904445431==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <0b7d86fd-aca5-42de-b59c-47bebcd48cf9 +\n %0A0%0A0%0A1%0A1%0A56fa286c-e034-4f80-8ef8-14f786eeb354>\n\nPATCH /admin/directory/v1/customer/C03kt1m66/devices/chromeos/56fa286c-e034-4f80-8ef8-14f786eeb354?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.33.0 gl-python/3.10.1\nauthorization: Bearer xxx\nHost: admin.googleapis.com\ncontent-length: 44\n\n{"orgUnitPath": "/DeprovisionedChromebooks"}\n--===============5496212009904445431==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 8426
header: Content-Type: multipart/mixed; boundary=batch_ckPhATQkbWFQl7bPLQPFTDnZm6pI3_Ou
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Thu, 09 Dec 2021 18:35:36 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
  Organizational Unit: /DeprovisionedChromebooks, CrOS Device: 56fa286c-e034-4f80-8ef8-14f786eeb354, Added

Send me a Meet/Zoom invitation

ross.scroggs @ gmail.com

@funar
Copy link
Author

funar commented Dec 10, 2021

There's a Google API ticket open related to this. I don't believe this is GAM-specific.
https://issuetracker.google.com/issues/209843436

@taers232c
Copy link
Owner

taers232c commented Dec 10, 2021 via email

@funar
Copy link
Author

funar commented Dec 10, 2021

I can confirm I'm getting the same error response in the API Explorer as well. The ChromeOS Device's original OU or intended OU doesn't seem to make any difference. I've tried about a dozen or so devices across our enterprise.

@funar
Copy link
Author

funar commented Dec 10, 2021

Adding to the fun:

curl --request PATCH \
  'https://admin.googleapis.com/admin/directory/v1/customer/my_customer/devices/chromeos/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?projection=FULL&key=*************************' \
  --header 'Authorization: Bearer ********************' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"orgUnitPath":"/Chromebooks/Disabled/Unassigned"}' \
  --compressed

Response:

HTTP/1.1 400 Bad Request
cache-control: private
content-encoding: gzip
content-length: 194
content-type: application/json; charset=UTF-8
date: Fri, 10 Dec 2021 15:19:19 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "error": {
    "code": 400,
    "message": "Invalid Input: Inconsistent Orgunit id and path in request - 2130216, /Chromebooks/Disabled/Unassigned",
    "errors": [
      {
        "message": "Invalid Input: Inconsistent Orgunit id and path in request - 2130216, /Chromebooks/Disabled/Unassigned",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}

@taers232c
Copy link
Owner

taers232c commented Dec 10, 2021 via email

@funar
Copy link
Author

funar commented Dec 10, 2021

I actually tried that as well. It yields the same error.

@funar
Copy link
Author

funar commented Dec 10, 2021

On a whim, I supplied orgUnitId ("id:xxxxxx") in addition to orgUnitPath, and it succeeded. The error text "inconsistent ID and Path" was perplexing me. Google seems to have made a change. orgUnitId is not listed as a required parameter in the API reference, but seems to be as of yesterday,

I still believe this is a bug and not an intended change...but Google.

@taers232c
Copy link
Owner

taers232c commented Dec 10, 2021 via email

@funar
Copy link
Author

funar commented Dec 10, 2021

Absolutely.

@bradshaffer6
Copy link

Just chiming in to say we are also seeing this issue across multiple applications using Admin Directory API as of Dec 9, 2021. The scripts and apps have been working for months and suddenly this issue appears. I have also seen reports back in 2015 of this happening and it apparently cleared itself up back then. Perhaps this one will clear up as well....or maybe Google will actually publish their change!!

@bradshaffer6
Copy link

PS: We've submitted a Google workspace support requests as well as bug reports from multiple Workspace customers to see if it gets someone's attention, but so far just silence.

@funar
Copy link
Author

funar commented Dec 10, 2021

I have a ticket in with Google Support as of yesterday as well. I found the aforementioned issue in their bugtracker today. Hopefully this is one of those things that simply goes away. I have a custom system in use in our enterprise that's a bit crippled because of it, and I'm not sure hacking in my workaround makes sense yet.

@hoffjd
Copy link

hoffjd commented Dec 13, 2021

Thank you all for working on this! I thought I was going crazy when scripts that had been working for months, and even worked during the day, stopped working at 5:00 on the eighth of December. I started going and only found a similar response from 2015, and nothing there seemed to help. Being a newbie at this, I was not sure where to go next. I felt better when I found funar's post and have been following it. I agree that implementing a work around for all my scripts is not feasible at this point but one one liner would help me get many kindergarteners working again.

Here's my question, how do I implement that work around? I'd tried this statement " gam csv test.csv gam cros_sn ~serialNumber update ou id:xxxxxxxxxxxxxxx " It identified the serial number of the chrome book and the correct ou from the ID however it still gave the same error. Is this not what I needed to do?

Thank You again for your help!

@bradshaffer6
Copy link

We're running several different applications across multiple platforms (Python, C#, and Google Apps Script) and each of these seems to require a slightly different approach to work around it. We're not using GAM so I can't offer any specific support there, but on the other platforms there seems to be two options:

  1. When you assign a device to an org unit path, you ALSO need to assign the org unit ID at the same time. That is, the path and the id of the targe OU must match. So in our case, we've had to write a little bit of extra code to fetch the org unit ID based on the path and then include that org unit ID along with the path in the update or patch method.

  2. In the case of Google Apps Script, we've found a bit of a simpler workaround. Whenever we create a ChromeOSDevice object (or fetch a ChromeOSDevice object) we assign the .orgunitpath property as we normally would. Then, we set the .orgunitID property to null. Then when we call the .Update method, the OrgUnit assignment seems to work correctly.

@funar
Copy link
Author

funar commented Dec 13, 2021

@bradshaffer6 - I didn't even occur to me that Google would accept a NULL orgUnitId. My work-around was doing an extra API call to get the orgUnitId for the new orgUnitPath from Google and sending it with the ChromeOSDevice update. This just saved me a bunch unnecessary API calls. Can I quote you in the Google Bugtracker?

@hoffjd - GAM will need to implement the changes @bradshaffer6 is talking about in order to work around the issue. I'm pretty sure everyone's assumption is that this is something Google will fix and no changes are necessary, however. Only time will tell.

@taers232c
Copy link
Owner

Shane,

Test with just orgUnitId

Ross

@bradshaffer6
Copy link

@funar sure, you can reference this in the BugTracker case.
@taers232c I'm also curious if you could set the orgUnitID and set the path to Null. But in our case, it would involve an extra step just to get the orgUnitID where orgUnitPath has always worked on its own before.

@taers232c
Copy link
Owner

taers232c commented Dec 13, 2021

I've already changed the code (not released), it works with null or the actual id.
My worry is that once Google sorts out what's going on and fixes it my change will then fail.
Just using orgUnitPath doesn't fail for me, I'm wondering what the difference between you all and me is.

@funar
Copy link
Author

funar commented Dec 13, 2021

Test with just orgUnitId

Sending orgUnitId ("id:xxxxxxx"), but omitting orgUnitPath or sending a empty string for orgUnitPath seems to work as well.

@funar
Copy link
Author

funar commented Dec 13, 2021

I'm wondering what the difference between you all and me is.

I'm on Google Workspace for Education in this particular case. Not sure it matters, but I suppose it might...

@taers232c
Copy link
Owner

I'll have a new version (6.11.05) in a few minutes.
Do: gam config update_cros_ou_with_id true save
You can still user the OU path on the command line, GAM will get the OU ID internally.

@hoffjd
Copy link

hoffjd commented Dec 13, 2021

Thank you all again for your work and sharing on this! I'd found the OU ID as well as the path ID but was not sure how to implement. Your discussion has given me how much to look up and learn about. Thank you for that as well!

@taers232c
Copy link
Owner

6.11.05 is available.
Do: gam config update_cros_ou_with_id true save
You can still use the OU path on the command line, GAM will get the OU ID internally.

@hoffjd
Copy link

hoffjd commented Dec 13, 2021

Ross,
Thank you for the new version. I wanted to know you were successful in removing the error message. It now is reading the path without error and saying it added the device to the OU, but it is not doing it. When I check a device it is still in the original OU.

@taers232c
Copy link
Owner

taers232c commented Dec 13, 2021 via email

@taers232c
Copy link
Owner

taers232c commented Dec 13, 2021 via email

@hoffjd
Copy link

hoffjd commented Dec 14, 2021

Thank you all for your help. I was able to download the new version this morning and tried out. I found that indeed it does eliminate the error message and move the devices, however sometimes it picks up extra devices. I'm looking into it now. My first test was moving a list of five devices. It did it perfectly. My next one was moving in list of 25 devices and it ended up moving 35. I've sorted out the 10 extra and did not find a reason why it moved those, yet. If you have any suggestions on what I might have done to cause that I am open. I may need to just wait for Google to get this fixed.

Thank you so much

John

@taers232c
Copy link
Owner

taers232c commented Dec 14, 2021 via email

@vusdgithub
Copy link

Hey Ross,

I'm having a similar issue. The move commands work if I specify the OU where the device already lives. Beyond that I'm getting the "Inconsistent Orgunit id and path" for any other OU whether it be some OU below the parent where the device lives or a completely different parent OU. It doesn't matter if I search by serial, asset, or the device id. Output from a few commands below followed by some debugs. Running the newest 64-bit version for Windows.

gam version
GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs ross.scroggs@gmail.com
Python 3.10.2 64-bit final
Windows 10 10.0.19043 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:

Works (OU where the device already lives):
gam cros_query "asset_id:89039259" update ou "/Chromebooks"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks, Add 1 CrOS Device
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added

Doesn't work:
C:\Users\adam.brown>gam cros_query "asset_id:89039259" update ou "/Chromebooks/Lost or Stolen"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen

Works:
gam info ou "/Chromebooks/Lost or Stolen"
Organizational Unit: /Chromebooks/Lost or Stolen
orgUnitId: id:026pr45i0u0dpf8
name: Lost or Stolen
description:
parentOrgUnitPath: /Chromebooks
parentOrgUnitId: id:026pr45i3fkc5cc
blockInheritance: False
Users:
Total Users in Organizational Unit: 0

Works:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com\r\ncontent-length: 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/9CaTM8R7ptdNlf8JXpABJBlwo-M"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com\r\nContent-Length: 858\r\ncontent-type: multipart/mixed; boundary="===============8651827380916016981=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============8651827380916016981==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <d04e47b4-f0b7-4342-b04b-b1c7d105e7c7 +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com\ncontent-length: 31\n\n{"orgUnitPath": "/Chromebooks"}\n--===============8651827380916016981==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 7512
header: Content-Type: multipart/mixed; boundary=batch_6i2f3Wr1OASXEMSCUkGAPF9nafPJG3uw
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:10 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added

Doesn't work:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks/Lost or Stolen"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com\r\ncontent-length: 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks/Lost%20or%20Stolen?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/dgGeUzAzFA2WCzKzSTQ7Wllyyjc"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com\r\nContent-Length: 873\r\ncontent-type: multipart/mixed; boundary="===============5308011806034951457=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 / Ross Scroggs ross.scroggs@gmail.com / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============5308011806034951457==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <70ad642e-fa2a-43a0-b200-d113127c6b9b +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com\ncontent-length: 46\n\n{"orgUnitPath": "/Chromebooks/Lost or Stolen"}\n--===============5308011806034951457==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 749
header: Content-Type: multipart/mixed; boundary=batch_hrkdIEHZ1QWLIUpsQ-CqsqYrxqpeYuUH
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:23 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
ERROR: JSON: {'error': {'code': 400, 'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'errors': [{'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'domain': 'global', 'reason': 'invalid'}]}}
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen

@taers232c
Copy link
Owner

taers232c commented Jan 31, 2022 via email

@vusdgithub
Copy link

vusdgithub commented Jan 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants