When {cloudname} detects a problem, it will show an editor notification containing information about the problem. This page describes the cause and solution for common {cloudname} error notifications.
|
Note
|
The wording of the notifications shown here may differ from the actual notifications from {cloudname}. |
"A valid API key is required to continue using {productname}. Please alert the admin to check the current API key. Click here to learn more."
This notification is shown when either:
-
An
apiKeyis not provided in the script tag, -
An empty or missing
apiKeyis provided, or -
The
apiKeyprovided cannot be found on the {cloudname} server.
The apiKey must be:
-
An exact length,
-
comprised of certain characters, and
-
created with a {cloudname} account on the {accountpage} page.
For example:
<script src="https://cdn.tiny.cloud/1/abcd1234/tinymce/{productmajorversion}/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>In this case, the editor will be in a read-only state, and a notification appears stating: "A valid API key is required to continue using {productname}. Please alert the admin to check the current API key. Click here to learn more."
To resolve this issue:
-
Update the
srcURL to include your (website or application developer’s) {cloudname} API Key, by replacing the placeholderno-api-keywith your actual API key.For example: if your API is
abcd1234:<script src="https://cdn.tiny.cloud/1/abcd1234/tinymce/{productmajorversion}/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>
-
Check the
apiKeyprovided in the script tag:-
Remove any leading or trailing spaces.
-
Remove any other characters that are not in your
apiKey. If you are using variable substitution, ensure that the variable is substituting properly. -
Ensure the
apiKey+matches the API key shown at {accountpageurl}.
-
-
If you do not have an API key, or need to retrieve your existing key, visit: {cloudname}.
|
Note
|
Visit our Invalid API key page for more information on how to fix an invalid API key issue with {productname}.
|
When no-api-key is set as the apiKey the editor will be in a read-only state, and the user will see a "Finish setting up" dialog prompting them to add a valid API key, configure their domain, and explore premium features.
-
Update the
srcURL to include your (website or application developer’s) {cloudname} API Key, by replacing the placeholderno-api-keywith your actual API key.
For example: if your API is abcd1234:
<script src="https://cdn.tiny.cloud/1/abcd1234/tinymce/{productmajorversion}/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>To retrieve your API key, or to sign up for an API key, visit: {cloudname}.
"This domain is not registered in the {productname} Customer Portal. Please alert the admin to add it to the approved domains to continue using {productname}. Click here to learn more."
This notification is shown when the Referer of the page does not match the list of approved domains stored against your apiKey. {cloudname} verifies the domain {productname} is loading from by checking the domain portion of the Referer header in the network request. You can view a list of your approved domains on your {accountpage}.
Sometimes the domain in the Referer header does not match with the URL in the browser’s address bar. To check the Referer header:
-
Open your browser’s Developer’s Tools.
-
Open the Network tab.
-
Find and select the request being made to load {productname} from {cloudname} with your API key.
-
Click on the Headers tab.
In the section called Request Headers there should be a field for Referer. This is the value that {productname} is checking against your approved domains. It must match one of your approved domains listed on your {accountpage}.
If the Referer is correct for the site, ensure that the domain is included in your list of approved domains on {accountpage}. If the Referer is not what you are expecting, you may need to adjust your application’s Referer header settings.
"We’re unable to check your domain because the referer header is missing. Please read the Guide on how to ensure your referer header is present, so we can then customize your editor experience."
-
This notification is shown if the Referer header is absent for the network request when loading {productname} from {cloudname}. {cloudname} verifies the domain {productname} is loading from by checking the domain of the Referer header in the network request.
-
Referer headers are sometimes removed by browser settings or browser extensions. {cloudname} only needs the domain in the Referer header, so for improved performance and privacy {companyname} recommends setting the
referrerpolicytooriginwhen requesting {cloudname} resources.
Identify which browser setting or extension is responsible for blocking the Referer being sent. A common extension is Referer Control:
Once you have identified the setting or extension, modify it to allow just the Origin of the Referer to be sent. Alternatively, disable the extension or setting for any pages using {cloudname}.
This notification is shown when your API key does not have access to the premium plugin being requested. This could be the result of a trial expiring, and your {productname} configuration attempting to load premium plugins you can no longer access.
You may also be seeing this notification if you are using the wrong API key. Ensure that you are using the API key that has the right entitlements.
Either remove the premium plugin from your {productname} configuration, or upgrade your subscription to provide access to that premium plugin.
|
Note
|
Visit our Invalid API key page for more information on how to fix a invalid API key with {productname}.
|
“{productname} is in read-only mode. Please alert the admin that an API key is required for continued use. Learn more
This message is sent when the developer has not supplied an API key, typically because they’ve copied a getting-started script and have not completed the official signup process to get an API key.
-
Please alert your Admin that an API key is required for continued use. Learn more, or
-
Sign up for a API key by visiting www.tiny.cloud/auth/signup, and
-
Update your {productname} configuration.
|
Note
|
Visit our Invalid API key page for more information on how to fix a invalid API key with {productname}.
|
“{productname} is in read-only mode. Please alert the admin to provide a valid API key to continue use. Learn more Your {productname} editor state has been set to read-only mode.”
This message is shown when the API key is not correct, perhaps because of a typo.
-
Login to your {productname} account and confirm that your API key matches your unique key by visiting www.tiny.cloud/auth/login/.
-
or to sign up for an API key, visit: {cloudname}.
“{productname} is in read-only mode. Please request that the admin add this domain to the approved domains in the Customer Portal. For more information see Domain not registered”
This message is shown when {productname} is loaded from a domain that has not been added to the approved domains in our account portal.
Please request that your admin add this domain to the approved domains in the Customer Portal. For more information see Domain not registered
|
Note
|
From {productname} 7.6.0 onwards, the editor uses disabled mode instead of read-only mode. |
