Routing seems not to be working on Heroku

Hey Alex, Awesome website my friend! I love it! I am trying to create Etsy store demo app (here is my URL: https://monkeywrench.herokuapp.com). I have 2 user profiles (one is a seller, and another one is buyer). After I purchase something, and I want to see in the seller account the sales history, I get the "Something went wrong" error message on Heroku. Same goes if I want to go to purchases page on buyers account (sales page works in this account.) Everything runs beautifully on my local machine, but not on Heroku. I did heroku logs, and it reports an error in block when we iterate over the image order.listing.image.url etc. How can I solve this weird problem? Thanks! Marko

Posted over 4 years ago by Marko
Posted over 4 years ago by Marko

Ha! I solved the problem! I just re-created user accounts, and everything seems to be working now!

1
Posted over 4 years ago by Alex Yang

Glad you were able to solve it! These errors will usually be code-related, but in some cases like this one, the error is caused by a corrupt entry in your database. For example, if you run 'order.listing.image.url', but one of your listings doesn't have an attached image, then you'll see Heroku's 'Something went wrong' error and you'll have to dig into your logs to figure out what went wrong. Hope that makes sense.

Also, cool site - I love the customizations you added to the navbar. Keep up the great work!

1