javascript - Successful post request appears as failed on Chrome -


i'm building web application using sails.js framework (v0.10.5), angular.js (v1.3.13) front-end. on app's "sign-up" view, i'm using angular $http service post new user's email , password database, via sails restful api action. testing process on chrome, got unexpected behavior.

on first try, chrome indicates "failed" status on post request, though new user gets inserted correctly in database (the server responds 200 in case). after deleting new entry db , pressing confirmation button again, chrome recognises request worked time around, indicating status "200 ok" on second request.

first request (failed):

first request (failed)

second request (200):

second request (200)

some other questions i've seen here regarding failed requests on chrome point adblock source of problem, i'm running chrome "stock", without plugins or extensions.

are first request responding 200? (failed) status in chrome's inspector indicate otherwise. sounds perhaps api encountering error after inserts record database, operation succeeds in creating new row, api returns 5xx response. see in sails.js logs?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -