Not sure what happened exactly… it was working fine and I didn’t change anything in this file. It has to be related to something I did recently:

  1. Ran a migration adding a unique constraint on a table
  2. Generated two new entities of a couple very basic tables.

The handler I’m using isn’t even using the new tables, so I don’t know why this randomly broke. Anyone have any ideas? Or even some guidance on how to decipher that obscure error would be helpful.

You are viewing a single thread.
View all comments View context
4 points

Oh man, I didn’t know debug_handler existed. Sure enough I had a missing derived attribute… not sure how but Serde serialize and deserialize were missing, so when I was trying to return Ok(Json(army)) it was failing. Thanks so much!

permalink
report
parent
reply
1 point

You’re welcome!

permalink
report
parent
reply

Rust

!rust@programming.dev

Create post

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

Community stats

  • 827

    Monthly active users

  • 876

    Posts

  • 3.7K

    Comments