Sentry Error
Project: ethernal-backend
Level: error
Events (24h): 33
Regression: No
Link: https://sentry.tryethernal.com/organizations/sentry/issues/99/
Error
You attempted to save an instance with no primary key, this is not allowed since it would result in a global update
Location
processTransactionTrace.js:73 - When disabling tracing after RPC error:
await transaction.workspace.update({ tracing: null });
Context
- Occurs in the
processTransactionTrace background job
- Triggered when RPC endpoint doesn't support
debug_traceTransaction
- The workspace instance somehow lacks a primary key value
- Sequelize prevents the update to avoid a global update across all workspaces
Root Cause
The workspace instance being updated is missing its primary key (id field), likely due to:
- Incomplete eager loading in the transaction query
- Workspace instance being modified elsewhere, losing the primary key
- Database inconsistency
Suggested Fix
- Investigate how the workspace is loaded in the transaction processing
- Ensure workspace is properly loaded with its primary key
- Add validation to check workspace.id exists before updating
- Consider using
Workspace.update({ tracing: null }, { where: { id: workspaceId } }) instead of instance method
Created by Sentry Scanner
Sentry Error
Project: ethernal-backend
Level: error
Events (24h): 33
Regression: No
Link: https://sentry.tryethernal.com/organizations/sentry/issues/99/
Error
Location
processTransactionTrace.js:73- When disabling tracing after RPC error:Context
processTransactionTracebackground jobdebug_traceTransactionRoot Cause
The workspace instance being updated is missing its primary key (
idfield), likely due to:Suggested Fix
Workspace.update({ tracing: null }, { where: { id: workspaceId } })instead of instance methodCreated by Sentry Scanner