Skip to the content

Reference

Messages and errors

Every message you or your users can see, where it comes from, what it means, and what to do. Search this page (Ctrl+F) for the words you saw.

In the editor's status bar#

Shown by the full editor when it can't edit. Your own interface can show the same from state.license (Events).

MessageWhat it meansWhat to do
Not licensed here: editing is offNo license could be had: the person isn't signed in to your app, the key isn't for this address, the plan isn't active, or the network is downCheck, in order: signed in; the address is listed on the key; the plan is active; the route's answer in the Network tab. See Troubleshooting
Reconnecting to your license… editing is pausedThe license ran out before a new one came (a dropped connection, a laptop waking from sleep)Nothing. It comes back by itself within seconds of the connection returning
This license isn't for this siteThe editor got a license made for another addressThe page's address differs from the one the license was made for: a proxy or CDN changing the host, or a copied page. Serve the page at the address listed on the key
Can't reach the license service: editing continues, saving as Word waitsDorvyn's license service can't be reached. Editing goes on for up to 24 hoursNothing, for your users. If it lasts, check your server can reach api.dorvyn.dev (strict mode), or the person's network

Notices in the editor#

Short messages shown as toasts (dorvyn-notice):

MessageWhat to do
Select a picture first (click it).Click the picture, then use the command
Select a picture or click in a table first.Select the picture or table to move or align
Click in a table first.Put the cursor in a table
Put the cursor in a paragraph first.Click in the text
Select some text in the document first, then add a comment.Select the words to comment on
Replaced N itemsFind and replace finished
That address is not allowed.A link to an unsafe address (like javascript:) was refused. Use an https://, mailto: or in-document link
Sorry, that file could not be opened. …The file isn't a valid .docx, web page or text file, or it's damaged. Open and save it in Word, then try again
This editor opens files up to N MB.The demo edition's limit (A demo of your own)
That picture could not be read.The image is damaged or in a format browsers can't show. Use PNG, JPEG, GIF, WebP or SVG
That shape could not be drawn. / That icon could not be drawn.Try again. If it keeps happening, reload the page
There is no table of figures yet. Use Insert Table of Figures first.Insert one before updating it
This document has no footnotes yet.Insert a footnote first
There is no text to read yet.Read aloud needs some text
Read aloud is not supported in this browser.Use a current Chrome, Edge or Safari
Dictation is not supported in this browser. Try Microsoft Edge or Google Chrome.As it says
Dictation needs the page to be opened over https.Serve the page over HTTPS (localhost works too)
Dictation could not start. Try again.Allow the microphone for the site, then try again
Your browser does not let the page read the clipboard. Press Ctrl+V to paste.Use the keyboard to paste. Browsers allow pasting from a button only on some sites
Your browser blocked cut. Use Ctrl+X instead. (or copy, Ctrl+C)Use the keyboard
Saving failed: …Your onSave threw. The rest is your error's message
The license service can't be reached: saving as Word waits. Your work is safe.Saving as Word needs Dorvyn's service. Try again later, or save to your own storage meanwhile
Saving as .docx needs a license that includes export.The license doesn't include saving as Word. Check the plan is active

Errors from the SDK#

Fired as dorvyn-error (onError in React), or thrown by the method you called.

MessageKindWhat to do
No license: give a key or serverUrl.GrantErrorSet server-url (or serverUrl, dorvynServerUrl), or a license
That is not a Dorvyn publishable key (dvn_pk_live_… or dvn_pk_test_…).GrantErrorThe license is wrong, or it's a secret key. Never put a dvn_sk_ key in a page: replace it now if you did
Dorvyn sent an answer this SDK doesn't understand.GrantErrorUpdate the SDK. If you use getGrant, return what requestGrant gave your server, unchanged
The engine didn't match this SDK, so it wasn't started.EngineIntegrityErrorIf you serve the engine yourself, it's from another version: download the one for this SDK version (Options). Otherwise a proxy changed the file: let it through unchanged
Unknown command "…".UnknownCommandErrorA typo in a command id, or a command that doesn't exist. editor.commands.list() lists them all
That isn't a Dorvyn document (EditorDocument, version 1).setDocument was given something other than what getDocument returned. Check what you stored
This editor has no document to work on …Put a <dorvyn-document> inside the editor, or leave it empty for the full editor
The drafts database is blocked by another tab.An older version of your app is open in another tab. Close it, or reload both
Failed to fetchThe browser couldn't reach the address: network, CSP (connect-src), or CORS. The console says which

Your server route#

What dorvynRoutes answers, as seen in the browser's Network tab on …/grant and …/export:

StatusMessageWhat to do
401Sign in to edit.user returned nothing. Is the person signed in, and does your user function read the session correctly? With Express, read req in a closure (Strict mode)
403Not from an allowed page.The page's address isn't in your origins option. Add it, or remove origins
403That license is for another user or page.A save with a license made for someone else, or another site. The page should reload, and the editor will get its own
400No Origin header.The request didn't come from a browser page. Call the route from the editor, not from a script
404Not found.The path doesn't end in /grant or /export: mount the route at …/:action ([action] in Next.js)
405Method not allowed.Only POST is answered
500The editor's license isn't available right now.Something on your server: your server's log has the details. The usual ones are below

In your server's log (Dorvyn route:):

MessageWhat to do
Set DORVYN_SECRET_KEY on the server to your secret key (dvn_sk_…).Set it in the server's environment, and restart. Check it's the whole key, without quotes or spaces
Dorvyn couldn't be reached.Your server's outbound network: a firewall, a proxy, DNS. It must reach https://api.dorvyn.dev and Dorvyn's export service
Dorvyn sent an answer this package doesn't understand.Update @dorvyn/server

From Dorvyn's license service#

Passed through by your route (strict mode), or seen by the editor (a key in the page).

This key can't be used here#

The one answer for anything wrong with the key, the address, or the organization, so that nobody probing your key learns which. Check, in order:

  1. The key: it's the whole key, it hasn't been revoked or replaced (overlap over), and it's the right kind: a secret key on your server, a publishable key in a page.
  2. The address: the page's exact origin (scheme, host, port) is listed on a publishable key of the same application and the same environment as your secret key. localhost and 127.0.0.1 differ, as do www. and no www..
  3. Test or live: live keys don't work on localhost or http://; a test secret key needs a test publishable key listing the address.
  4. The plan: for live keys, the plan is active (Billing). Not chosen yet, suspended, canceled, or a payment failed over 7 days ago: live keys are refused.
  5. The Organization plan requires strict mode: a publishable key in the page is refused there.

The Security page lists each refusal with its reason, for owners and admins.

Other answers#

MessageWhat to do
Too many requests. Try again in a minute.A rate limit. The editor and your route retry by themselves. If it keeps happening for one user, something is calling your route in a loop
This version of the Dorvyn SDK is no longer supported. Update it.Update the SDK packages and deploy
This organization's plan requires a subject on every grant.Your route must return the user's id (strict mode is required on your plan). Check user returns one
subject must be 1–128 letters, digits or . _ : @ | - (an opaque id, not personal data).Your user returned something else: an email, a name, or an id with other characters. Return your database's user id
origin must be the page's origin, like https://app.example.com.With requestGrant, pass the page's Origin header unchanged
Grants are requested by the Dorvyn SDK from a browser.A publishable key was used from a server. Servers use a secret key (Strict mode)
The SDK version is missing or malformed. / The nonce is missing or malformed.Something other than the SDK built the request. Pass the editor's request body to requestGrant as it is

From the export service (saving as Word)#

MessageWhat to do
The plan's exports for today are used up. They reset at midnight UTC.Your plan's daily saves are used up. Editing goes on. Move to a larger plan if it happens often
The document is larger than the plan allows.The document (with its pictures) is over your plan's limit. Make pictures smaller, or split the document
The document is too large for a direct export.Very large documents can't be saved this way yet. Make pictures smaller
The grant has expired. The SDK will fetch a new one.Nothing: the editor gets a new license and you can save again
This grant is for another site.Saved from an address the license wasn't made for. Reload the page at the address listed on the key
This license doesn't include saving as .docx.Check the plan is active
This license exports only through your server (strict mode).In strict mode, saving goes through your route. Don't call Dorvyn's export service from the browser yourself
The export ticket has expired. / The export ticket isn't for this grant.Your server's approval for this save expired or didn't match it. Use dorvynRoutes, or call requestExport once per save, straight away, with that user's own grant
This organization's documents are exported in another region.DORVYN_EXPORT_URL points at the wrong region. Remove it, and the right one is used
Exports aren't available right now. Try again in a moment.A temporary problem at Dorvyn. Try again
The request is not a valid export. / A grant is required. / The grant isn't valid.The request was changed on its way. Pass the editor's request body to your route's export unchanged
This export service isn't licensed for this organization, or its license has expired.Self-hosted export: install your renewed license (Self-hosted export)

In the dashboard#

Keys and domains#

MessageWhat to do
Origins must start with https:// (or http://localhost for test keys).Write the scheme: https://app.example.com
An origin is only the scheme, host and port, without a path, query or fragment.Remove everything after the host and port
Wildcards aren't allowed: list each origin exactly.List each subdomain
Live keys need https origins.Live keys are for your real sites. Use a test key for http
Live keys can't use localhost or IP addresses. Use a test key for development.As it says
Plain http is allowed only for localhost on test keys.Use https, or http://localhost
The plan allows N origins per key.Remove one, or move to a larger plan
An application can have at most 10 active keys. Revoke one first.Revoke keys you no longer use
The plan's applications are all in use.Delete one, or move to a larger plan
Only an active credential that hasn't been replaced can be rotated.Replace the newer key instead
That credential is already revoked or replaced.Nothing to do: it's already stopped

Team#

MessageWhat to do
All seats are in use. Add seats to the plan, or free one first.Add seats in Billing, take one back on Team, or invite without a seat
Personal credentials need a developer seat. Ask an owner or admin for one.Ask for a seat
There's already a pending invitation for that email. Revoke it first, or wait for it to expire.Withdraw the old one on Team, then invite again
That person is already a member.Change their role instead
This invitation is for another email address. Sign in with the address it was sent to.Sign out, and sign in with that address
That invitation isn't valid any more. Ask for a new one.It was used, withdrawn, or is over 7 days old
Too many invitations this hour. Try again later.Wait an hour
An organization must keep at least one owner. Make someone else an owner first.Make another member an owner, then try again
Only an owner can add or remove owners. / Only an owner can invite an owner.Ask an owner
That member was changed by someone else. Reload and try again.Reload the page
The Team plan is for up to 4 developers.Move to the Developer plan for more

Billing and account#

MessageWhat to do
This organization already has a subscription. Change it in the billing portal.Use Manage billing
There's nothing to manage yet. Choose a plan first.Choose a plan
The Organization plan is arranged with Dorvyn's sales team. Contact sales to start.Contact sales from Billing
Payments aren't available right now. Try again in a moment.Try again shortly
Too many reports this hour. We have the earlier ones.We've got your message; we'll reply by email
Your organization signs in through its own single sign-on. Use “Sign in with SSO”.Sign in with your company's single sign-on
Signing in didn't work. Try again.Try again. If it keeps failing, clear the site's cookies
Your session has ended. Sign in again.Sign in again
You don't have permission to do that.Your role doesn't cover it (Roles)
Something went wrong. Try again in a moment.Try again. If it keeps happening, email support@dorvyn.dev with the time it happened