Creating an allocation that already exists results in a 500 #180

Closed
opened 2026-02-04 17:00:11 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @notAreYouScared on GitHub (Oct 23, 2024).

Create allocation with a port, (0.0.0.0, 25565)
Attempt to create another allocation of the same ( 0.0.0.0. 25565)
500 Error

PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: allocations.node_id, allocations.ip, allocations.port

image
image

Originally created by @notAreYouScared on GitHub (Oct 23, 2024). Create allocation with a port, (0.0.0.0, 25565) Attempt to create another allocation of the same ( 0.0.0.0. 25565) 500 Error `PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: allocations.node_id, allocations.ip, allocations.port` ![image](https://github.com/user-attachments/assets/b6372bf4-8511-414a-bd30-d4f859f429b7) ![image](https://github.com/user-attachments/assets/2499d4fb-868c-4e73-8465-d0082b84d752)
OVERLORD added the 🟢 easy label 2026-02-04 17:00:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#180