bad type error

Hi, We are developing a web social network and launched it on fly, use Mnesia as a Database, everything worked well but after developed Mail Approval and tested it locally we get bad type error on fly, the issue is that we don’t face any error locally and it’s happening just on launched app on fly, We restarted the app but the issue is exists, Don’t know how to fix it, can it be related to fly.toml or do we lack Sth ?

To those experiencing the same issue: you might want to try to remove the contents of the mnesia dir (in this example) although the cons here is your data will be wiped out. then redeploy the instance. Part of the reason (I guess) why it’s throwing bad_type is because the data type of the field previously wasn’t the same as now.

1 Like