Skip to main content
Use this page when the SDK resource starts but an export fails, returns an API error or cannot capture screenshots.

Common errors

Check the API key

The SDK reads the API key from FIVEMESH_API_KEY.
Generate a Server API Key from Servers > the server overview for uploads and Logs. For CDN reads, deletes or purge, create a Developer API Key from Developers → API Keys (/developers/api-keys) with the required permissions. If an export uses keyProfile = "MUGSHOTS", the SDK reads FIVEMESH_API_KEY_MUGSHOTS. Profile names are case-sensitive.

Check Logs setup

  • Enable Logs for the selected server in the dashboard before sending events.
  • Use a key with logs:write for ingestion and logs:read for queries.
  • With a global Developer key, set FIVEMESH_SERVER_ID to the cfx.re join code.
  • With a server-bound key, omit that ConVar or make sure it matches the key’s server.
  • Check the startup identity message or call whoami.
  • Automatic logging is opt-in: set FIVEMESH_LOGS_AUTOMATIC "true" before starting the SDK.
  • Keep query windows within seven days and reuse the returned range and filters when paging with a cursor.

Check the path scope

If the API key is scoped to /screenshots, keep uploads and deletes under that path.
Avoid absolute paths, backslashes and dot-prefixed segments.

Check screenshot setup

Screenshot helpers require screenshot-basic.
If the call times out, increase the timeout passed to takeServerImage and confirm the target player is still connected.