appirio-tech / lc1-project

Core challenge engine for Serenity Project
MIT License
6 stars 8 forks source link

Submission succeeds but not the file upload #380

Closed gaitonde closed 10 years ago

gaitonde commented 10 years ago

After submitting to a challenge the submission succeeds, but the file upload does not.

indytechcook commented 10 years ago

@gaitonde got this fixed up. I'll deploy tonight.

indytechcook commented 10 years ago

DONE!!!

gaitonde commented 10 years ago

@indytechcook - I'm still unable to upload. Get the same error dialog. JS console shows this -

https://lc1-external-challenge-service.herokuapp.com/develop/challenges/42/upload Failed to load resource: the server responded with a status of 503 (Service Unavailable)

indytechcook commented 10 years ago

I'm getting a success: http://monosnap.com/image/grg6ThoKsfDJ5ZT03AR5zVd3kLhmNM.

On Mon, Nov 24, 2014 at 10:07 PM, Dayal Gaitonde notifications@github.com wrote:

@indytechcook https://github.com/indytechcook - I'm still unable to upload. Get the same error dialog. JS console shows this -

https://lc1-external-challenge-service.herokuapp.com/develop/challenges/42/upload Failed to load resource: the server responded with a status of 503 (Service Unavailable)

— Reply to this email directly or view it on GitHub https://github.com/appirio-tech/lc1-project/issues/380#issuecomment-64303866 .

indytechcook commented 10 years ago

Here is the files record: http://lc1-challenge-service.herokuapp.com/challenges/42/submissions/85/files

On Tue, Nov 25, 2014 at 7:11 AM, Neil Hastings nhastings@appirio.com wrote:

I'm getting a success: http://monosnap.com/image/grg6ThoKsfDJ5ZT03AR5zVd3kLhmNM.

On Mon, Nov 24, 2014 at 10:07 PM, Dayal Gaitonde <notifications@github.com

wrote:

@indytechcook https://github.com/indytechcook - I'm still unable to upload. Get the same error dialog. JS console shows this -

https://lc1-external-challenge-service.herokuapp.com/develop/challenges/42/upload Failed to load resource: the server responded with a status of 503 (Service Unavailable)

— Reply to this email directly or view it on GitHub https://github.com/appirio-tech/lc1-project/issues/380#issuecomment-64303866 .

indytechcook commented 10 years ago

Here is the error in the logs:

24 19:02:41 lc1-external-challenge-service app/web.2: error: Script restart attempt #1 Nov 24 19:02:41 lc1-external-challenge-service app/web.2: /app/controllers/challenges.js:212 Nov 24 19:02:41 lc1-external-challenge-service app/web.2: file = files.file[0]; Nov 24 19:02:41 lc1-external-challenge-service app/web.2: ^ Nov 24 19:02:41 lc1-external-challenge-service app/web.2: TypeError: Cannot read property '0' of undefined Nov 24 19:02:41 lc1-external-challenge-service app/web.2: at /app/controllers/challenges.js:212:24 Nov 24 19:02:41 lc1-external-challenge-service app/web.2: at /app/node_modules/multiparty/index.js:129:9 Nov 24 19:02:41 lc1-external-challenge-service app/web.2: at /app/node_modules/multiparty/index.js:108:9 Nov 24 19:02:41 lc1-external-challenge-service app/web.2: at process._tickCallback (node.js:419:13) Nov 24 19:02:41 lc1-external-challenge-service app/web.2: error: Forever detected script exited with code: 8

@gaitonde can you attach the file you were attempting to use to this issue.

gaitonde commented 10 years ago

GH doesn't support attaching zip files. Uploaded to GDrive and shared.

Can you share the file that worked for you?

indytechcook commented 10 years ago

Here is the one from s3 :)

https://bowermanpublic.s3.amazonaws.com/challenges/42/submissions/indy_qa3/85/submission-505259-diff-updated.patch%20%281%29.zip

indytechcook commented 10 years ago

Upload works

http://monosnap.com/image/lq3Ln8h4nJtIoyIb05Dt6C42Yavw7M http://lc1-challenge-service.herokuapp.com/challenges/42/submissions/86/files

I did notice that I was working in safari. I'll try chrome.

indytechcook commented 10 years ago

It worked via chrome also.