Forum Discussion

andreystarenky's avatar
andreystarenky
Level 1.5: Cupcake
9 months ago
Solved

Provisioning QR Code Not Generating - 404 Not Found

Hi, I had previously made a policy for a device and provisioned it. I made a second policy and tried to provision another device, but when I ran the code to generate the QR code it generates a link for me but when I click it, it says 404 Not Found - I did it through the Android Management API Quickstart notebook.

 

What could cause this? All the previous code for executing the policies and generating the token worked fine with no errors.

  • andreystarenky's avatar
    andreystarenky
    9 months ago

    Hi, yes I did and the enrollment token is brand new I just generated it. 

    I figured out the problem, it was the use of Google charts API which has been deprecated for a long time now but still used in the quickstart for some reason. My solution was to generate my own QR code with the Jason's in the url.

  • ReeceK's avatar
    ReeceK
    Former Community Manager
    9 months ago

    Hi andreystarenky 

     

    Thank you for your question and welcome to the community. 

     

    To clarify, did you specify a default policy for the enrollment token when you created the second policy?

    Additionally, could you let me know when the token was generated?

     

    Thanks,

    Reece

    • andreystarenky's avatar
      andreystarenky
      Level 1.5: Cupcake
      9 months ago

      Hi, yes I did and the enrollment token is brand new I just generated it. 

      I figured out the problem, it was the use of Google charts API which has been deprecated for a long time now but still used in the quickstart for some reason. My solution was to generate my own QR code with the Jason's in the url.

  • Lizzie's avatar
    Lizzie
    Google Community Manager
    9 months ago

    Thanks so much for the update andreystarenky - I'm really glad you were able to resolve this. 

     

    Based on what you shared I checked in with the team on this. If anyone is experiencing the same error with quickstart, please check you are using the latest version as this was fairly recently updated. This will make sure the deprecated Google charts API doesn't cause any difficulties. 

     

    I hope this helps and thanks for highlighting andreystarenky😀 Good luck with the rest of your provisioning. 

     

    Lizzie