You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST /api/v1/flights/ application/json:
>> Matched: (add) POST /api/v1/flights
thread 'rocket-worker-thread' panicked at src/data.rs:274:6:
Transaction for create_flight failed: DatabaseError(UniqueViolation, "duplicate key value violates unique constraint \"flights_user_id_number_key\"")
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: flugbuech_api::data::create_flight
4: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
5: tokio::runtime::task::core::Core<T,S>::poll
6: tokio::runtime::task::harness::Harness<T,S>::poll
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
>> Handler add panicked.
>> This is an application bug.
>> A panic in Rust must be treated as an exceptional event.
>> Panicking is not a suitable error handling mechanism.
>> Unwinding, the result of a panic, is an expensive operation.
>> Panics will degrade application performance.
>> Instead of panicking, return `Option` and/or `Result`.
>> Values of either type can be returned directly from handlers.
>> A panic is treated as an internal server error.
>> Outcome: Error(500 Internal Server Error)
>> No 500 catcher registered. Using Rocket default.
>> Response succeeded.
In addition, the UI does not show anything when the 500 happens.
The text was updated successfully, but these errors were encountered:
When flight number is already used:
In addition, the UI does not show anything when the 500 happens.
The text was updated successfully, but these errors were encountered: