maltyeva / mindimp-pg

2 stars 1 forks source link

Create Assignment takes me to blank page #102

Open MindImpMatt opened 9 years ago

MindImpMatt commented 9 years ago

Once I try to post the assignment it redirects me to a blank page (assignment is still created though).

maltyeva commented 9 years ago

I can't reproduce this. Let me try tomorrow. I think this may be partially dependent on internet speeds. Are you at home or in a cafe?

jzthompson commented 9 years ago

This also happens for me, seemingly 100% of the time. I generally upload assignments when I'm at home, and internet here is usually good.

I've also noticed that if I try to refresh once I've been sent to that blank page, the assignment uploads a second time, and I'm sent once again to the blank page. I'm not sure if that provides any clue as to what is going on.

ChasonMindImp commented 9 years ago

I had this issue as well. Upon hitting submit, you are redirected to https://app.mindimp.com/course_assignments which never loads completely. If you hit refresh, the assignment posts again. If you try hitting enter again to load, the site, you get this message: We apologize. Your request caused an error.

If you think you were wrongly redirected to this page, please contact support@mindimp.com

On Mon, Apr 27, 2015 at 9:24 PM, jzthompson notifications@github.com wrote:

This also happens for me, seemingly 100% of the time. I generally upload assignments when I'm at home, and internet here is usually good.

I've also noticed that if I try to refresh once I've been sent to that blank page, the assignment uploads a second time, and I'm sent once again to the blank page. I'm not sure if that provides any clue as to what is going on.

— Reply to this email directly or view it on GitHub https://github.com/maltyeva/mindimp-pg/issues/102#issuecomment-96651635.

Chason Dailey | 戴奇森 Program Manager and Advisor* | _思脉 _MindImp* https://www.mindimp.com/

maltyeva commented 9 years ago

Ahh, okay, I think i see what is happening.

The redirect to course_assignments index is errorring out because there are some assignments without course sessions that it's seeing when it's checking for nill. I added a check to destroy all course assignments if a session is destroyed and will go fix this in the db as well.

I think the other part of the issue comes from the way Heroku handles timeouts. It may be taking too long to send the emails, which is why it's going to the blank page. Let me start some monitoring and I'll get back with a solution that works. For now, I've fixed the redirect error and will push that with the next deploy.

ChasonMindImp commented 9 years ago

Success!

On Tue, Apr 28, 2015 at 10:42 AM, maltyeva notifications@github.com wrote:

Ahh, okay, I think i see what is happening.

The redirect to course_assignments index is errorring out because there are some assignments without course sessions that it's seeing when it's checking for nill. I added a check to destroy all course assignments if a session is destroyed and will go fix this in the db as well.

I think the other part of the issue comes from the way Heroku handles timeouts. It may be taking too long to send the emails, which is why it's going to the blank page. Let me start some monitoring and I'll get back with a solution that works. For now, I've fixed the redirect error and will push that with the next deploy.

— Reply to this email directly or view it on GitHub https://github.com/maltyeva/mindimp-pg/issues/102#issuecomment-96889876.

Chason Dailey | 戴奇森 Program Manager and Advisor* | _思脉 _MindImp* https://www.mindimp.com/