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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -