Common errors
| Symptom | Check |
|---|---|
Missing FiveMesh API key | Confirm set FIVEMESH_API_KEY "fm_live_..." is in server.cfg before ensure fivemesh-sdk. |
Missing FiveMesh API key profile | Confirm the exact FIVEMESH_API_KEY_<PROFILE_NAME> ConVar exists for the keyProfile used by the export. |
FORBIDDEN | Add the required CDN permission to the service key. |
PATH_NOT_ALLOWED | Check the service key path prefix and the path passed to the export. |
| Screenshot exports fail | Confirm screenshot-basic is installed and started before fivemesh-sdk. |
| Upload URL expired | Create a new upload URL and keep expiresIn short but long enough for the caller to upload. |
Check the service key
The SDK reads the service key fromFIVEMESH_API_KEY.
keyProfile = "MUGSHOTS", the SDK reads FIVEMESH_API_KEY_MUGSHOTS. Profile names are case-sensitive.
| Export | Required permission |
|---|---|
listObjects | cdn:read |
uploadFile, uploadImage, bulkUpload | cdn:write |
createPresignedUrl, takeServerImage, client takeImage | cdn:write |
deleteObject, bulkDelete | cdn:delete |
purgeObjects | cdn:purge |
Check the path scope
If the service key is scoped to/screenshots, keep uploads and deletes under that path.
Check screenshot setup
Screenshot helpers requirescreenshot-basic.
takeServerImage and confirm the target player is still connected.