Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku deployment crashed #59

Open
innaleikina opened this issue Sep 21, 2019 · 7 comments
Open

Heroku deployment crashed #59

innaleikina opened this issue Sep 21, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@innaleikina
Copy link
Contributor

I was using the site. I logged in and selected shop, then I selected an item, after selecting an item I pressed to add it to cart, but didn't select the recipient. The item didn't render the photo or price, then the site crashed for me.

I revisited it a couple hours later and did the same thing.All the photos and prices were there. I was still able to navigate the websites, but no photos loaded afterwards, not even frames. Then the website crashed completely and won't refresh

@Alex-Cannon
Copy link
Contributor

@innaleikina I visited the site. It loaded for me. Then I...

  1. Logged in as "root"
  2. Selected "shop"
  3. Selected an item
  4. Pressed "add to cart". The photo and item rendered.

This is where the item didn't render the photo or price then crashed for you?

  1. In my case, the site did not crash. Instead, "add to cart" did nothing.

Did I follow your footsteps correctly? If so, it may have been an issue with heroku?

@innaleikina
Copy link
Contributor Author

I retraced my steps. I did everything like you, except after I pressed add to cart I clicked all the nav items, and when I went back to the shop page there were no items rendering. Then I hit refresh, and the website crashed.

I think all we need is an error message if a user tries to add something to the cart without having a recipient.

@Alex-Cannon
Copy link
Contributor

@innaleikina I wasn't able to reproduce the error. I followed these steps:

  1. Logged in as "root"
  2. Selected "shop"
  3. Pressed "add to cart". The photo and item rendered.
  4. Hit all the nav buttons except logout
  5. Went back to the "shop" page
  6. Everything rendered correctly.

Were you logged out when you went back to the shop page? If you logged out, then hit the back arrow in your browser, it could have tried to get the shop items, but since you weren't authenticated, failed.

@innaleikina
Copy link
Contributor Author

Sorry for taking so long. I will take a video of the issue tomorrow and will send it to you.

@innaleikina
Copy link
Contributor Author

https://drive.google.com/file/d/1Aji8MvEtZ5YgvFVBYemMPYVP7mQDIuf7/view here is a link to the screen cast. I'm not sure if it shows well, but after I added to cart and then clicked around and came back to shop, I refreshed.

@Alex-Cannon
Copy link
Contributor

Interesting. It looks like it may have to do with a specific item. Let me check the database to see if there's an unordinary item.

@Alex-Cannon Alex-Cannon self-assigned this Oct 1, 2019
@Alex-Cannon Alex-Cannon added the bug Something isn't working label Oct 1, 2019
@Alex-Cannon
Copy link
Contributor

Ok, I think I found the issue. I haven't tested this, but it appears to be an issue with GETing a single item from the API. When I login as root (admin), I do NOT have the issue.

This has something to do with the logic separating admin users from non-admin users or it could be an issue you have by not having an active event. One of the two. I don't have time to fix this today, but I'll get to it as soon as I can. I plan to get a fix by the end of the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants