Google Classroom add-ons are now generally available to developers! Please see the
add-ons documentation for more information.
Add-ons specific errors
The Classroom add-ons API may return add-ons specific PERMISSION DENIED
HTTP
403 errors if an end user doesn't meet the prerequisites for access. The message
accompanying the error contains an error message to help you identify the
cause and direct users to take the appropriate action.
InvalidAddOnToken
InvalidAddOnToken
indicates that the add-on token passed in a request is not
authorized to create an add-on attachment on the assignment.
Possible Action: This error can be thrown if the user signs in to the add-on
with a different account than the account in Classroom. Instruct the user to
either sign out of all other accounts in the browser or open Classroom in an
incognito Chrome window.
ExpiredAddOnToken
ExpiredAddOnToken
indicates that the add-on token being used to make calls to
the API has expired.
Possible Action: Prompt the user to refresh the page or sign in to the add-on
again so that you may obtain the new addOnToken
query parameter from the
request URL.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["The Classroom add-ons API might return specific \"PERMISSION DENIED\" errors if a user lacks access prerequisites, providing an error message to identify the cause."],["`InvalidAddOnToken` errors occur when the add-on token isn't authorized, potentially due to mismatched user accounts, and users should sign out of other accounts or use incognito mode."],["`ExpiredAddOnToken` errors indicate an expired token, prompting users to refresh the page or re-sign in to obtain a new token."]]],[]]