I'm trying to enroll a new device using the quickstart colab guide. I have successfully create an enterprise, a policy and an enrollment token. I can also successfully query those using the Android Management API.
However, enrollment is not working. Whenever I am scanning the associated QR code with a device, I get an "invalid code" (invalid code; the code you have provided isn't valid) message with the option to try again or to reset the device.
How can I debug this? Is there a way to find out more about why it is failing?