node-demo icon indicating copy to clipboard operation
node-demo copied to clipboard

Add a question to a quizz: 404

Open rdlh opened this issue 10 years ago • 4 comments

Hi !

got a 404 page when i try to reach http://localhost:3000/admin/quizzes/1/questions/new (http://localhost:3000/admin/quizzes/1/edit works well). Here are logs of my terminal:

Executing (default): SELECT * FROM `quizzes` WHERE `quizzes`.`id`='1' LIMIT 1;
GET /admin/quizzes/1/questions/new 404 4ms
   info  - transport end (undefined)
   info  - handshake authorized CkrlBJAuc8auIO8UgrjT

Can you help me fixing it ?

rdlh avatar May 04 '14 23:05 rdlh

Hey there,

A related issue existed about 8 days ago as Sequelize changed stuff since last Fall, I stumbled upon it and fixed it.

Are you up-to-date on the latest master? It works for me on the current codebase, with or without a prior database…

Also, I fail to see how it could generate a 404 instead of a 5xx error?

Best,

tdd avatar May 05 '14 07:05 tdd

Hi !

I am currently on commit Ajustement LCD Arduino pour Mix-IT (SHA : 12004d1) and i still have got Cannot GET /admin/quizzes/2/questions/new when i try to reach http://localhost:3000/admin/quizzes/2/questions/new.

Merci d'avance. Rémi

rdlh avatar May 05 '14 19:05 rdlh

Hey,

Ooops, sorry about that, had read "new quiz", not "new question". Will check it out tomorrow and let you know.

tdd avatar May 05 '14 20:05 tdd

Hello,

Yup, not your fault, issues with how express-namespace interacted with the new Express 4 code. And when that got fixed, ran into the same Sequelize upgrade issue I had (daoFactory not available on model instances anymore), so fixed that. All back screens now work!

tdd avatar May 06 '14 09:05 tdd