Skip to main content
View as Markdown

Troubleshooting - Media Manager

Troubleshooting​

Common Problems​

ProblemCause and fix
Unknown env undefined providedThe workspace config has no env. Add env: 'nvp1' (or your region). See Getting Started.
The workspace fails to startThe loader URL and env are for different regions. Use the same region in both.
"Something went wrong" in the tableThe list request failed, usually because the KS is invalid, has expired, or belongs to another region. Check the console for the API error.
The table is invisible or squashedThe container has no explicit width and height. Inline tables need a sized container.
A filter or interceptor seems to have no effectpre* interceptors fail open: an error is logged and the unmodified query is sent. Look for a console error that names the interceptor. See Interceptors.
The list shows an error after adding apiFiltersAPI filters fail closed. The console error starting with apiFilters.getMediaList: says which condition is malformed. See API Filters.
The list shows an error after adding postGetMediaListThe hook threw, or returned something other than an array. Return the entries array, or nothing.
Users can't open subcategoriesThe custom columns list leaves out nameAndStatus, which is the only column that opens folders.
A row has no actionsActions show only for entries in the right state: select, download and custom actions for ready entries; delete and detach also for failed ones. See Row Actions.
trigger() returns triggered: true but no file picker opensIt wasn't called from a user gesture. Call it from a click handler.
Uploads stopped after a whileThe KS expired. Call runtime.updateSettings() with a fresh KS; see Contexts & Data.
An adminSecret setting fails validationadminSecret is no longer supported. Generate a KS on your server and pass ks.

Security​

  • Never put an admin secret in the page. Generate the KS on your server, give it the shortest expiry that works, and pass only the KS. See KS security practices.
  • Scope the KS to the user. The table lists what the KS's user is entitled to see, and delete removes entries for real, so use a user-level KS rather than an admin one wherever possible.
  • Filters aren't access control. API filters and interceptors run in the browser, where the user can change them. Restrict access with the KS and entitlements, not with filters.