Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ docker-build-frontend:

[group('docker')]
docker-run:
docker run -p 6420:6420 rivetkit/engine:local
docker run -p 6420:6420 -e RIVET__AUTH__ADMIN_TOKEN=dev -e RUST_LOG=debug rivetkit/engine:local

2 changes: 0 additions & 2 deletions packages/core/api-public/src/actors/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ pub fn extract_duplicate_key_error(err: &anyhow::Error) -> Option<Id> {
// Try to downcast to RivetError first (local calls)
let rivet_err = err.chain().find_map(|x| x.downcast_ref::<RivetError>());
if let Some(rivet_err) = rivet_err {
tracing::info!(group = ?rivet_err.group(), code = ?rivet_err.code(), "normal rivet error");
if rivet_err.group() == "actor" && rivet_err.code() == "duplicate_key" {
// Extract existing_actor_id from metadata
if let Some(metadata) = rivet_err.metadata() {
Expand All @@ -169,7 +168,6 @@ pub fn extract_duplicate_key_error(err: &anyhow::Error) -> Option<Id> {
.chain()
.find_map(|x| x.downcast_ref::<rivet_api_builder::error_response::RawErrorResponse>());
if let Some(raw_err) = raw_err {
tracing::info!(group = ?raw_err.1.group, code = ?raw_err.1.code, "raw rivet error");
if raw_err.1.group == "actor" && raw_err.1.code == "duplicate_key" {
// Extract existing_actor_id from metadata (now available in ErrorResponse)
if let Some(metadata) = &raw_err.1.metadata {
Expand Down
Loading