lhayhurst / xwlists

A web site to track X-Wing Miniature Combat lists.
http://lists.starwarsclubhouse.com
MIT License
18 stars 7 forks source link

Unhandled Exception when uploading Escalation JSON data #55

Closed kingargyle closed 8 years ago

kingargyle commented 8 years ago

Trying to upload some escalation data from a Cryodex exported tournament. I get an unhandled exception when submitting the data.

lhayhurst commented 8 years ago

hey there, thank you. can you possibly send me the json file you used? the exception is happening prior to saving down the file to disk, so sadly don't have the file to look at.

kingargyle commented 8 years ago

Here is the file exported from Cryodex. It was an Escalation tournament if that makes any difference.

XWingTournament.txt

lhayhurst commented 8 years ago

thanks much! I've fixed the bug and rolled it out. can you try recreating it for me?

re: Escalation tournament, does not matter. this was just bug of the dumb programmer variety.

kingargyle commented 8 years ago

Just tried re-uploading the data after filling out the add_tourney form. Got the following error. screen shot 2015-12-21 at 10 49 20 am

lhayhurst commented 8 years ago

looking at the logs it seems it lost its connection with the mysql server. I just tried creating it and it went through: http://lists.starwarsclubhouse.com/get_tourney_details?tourney_id=956

thanks for your patience on this. can you give it one more shot?

kingargyle commented 8 years ago

Nope, didn't work. Same thing.

lhayhurst commented 8 years ago

The file you are uploading wouldn't happen to end in .html would it ?

On Monday, December 21, 2015, David Carver notifications@github.com wrote:

Nope. Same thing.

— Reply to this email directly or view it on GitHub https://github.com/lhayhurst/xwlists/issues/55#issuecomment-166340778.

kingargyle commented 8 years ago

Nope. .txt, I can change it .json if you want. I'm putting the tournament name is: The Force Awakens Celebration - Escalation Tournament. Not sure if that is affecting things or not.

lhayhurst commented 8 years ago

Change it to .json and it should work. I will go on and add/fix the file extension checks to only accept json :)

On Monday, December 21, 2015, David Carver notifications@github.com wrote:

Nope. .txt, I can change it .json if you want. I'm putting the tournament name is: The Force Awakens Celebration - Escalation Tournament. Not sure if that is affecting things or not.

— Reply to this email directly or view it on GitHub https://github.com/lhayhurst/xwlists/issues/55#issuecomment-166346657.

kingargyle commented 8 years ago

Yep that worked. Closing the issue.