Closed wbaridon closed 6 years ago
En revanche autre soucis incomprehensible a priori le gender c'est mal inscrit on a un tru au lieu de true...
sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Étang-la-Ville', 48.8738427, 2.0699577, 390, 1),('73', 'Dupont', 'Auguste', tru' at line 1
at Query.Sequence._packetToError (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
at Query.ErrorPacket (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)
at Protocol._parsePacket (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:278:23)
at Parser.write (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:38:16)
at Socket.<anonymous> (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:91:28)
at Socket.<anonymous> (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:502:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onread (net.js:638:20)
--------------------
at Protocol._enqueue (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Connection.query (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:200:25)
at Promise (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/src/utils/fakeProfiles.js:212:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 fakeProfiles: `mysql.server start 2>&- 1>&-; sleep 1 && node src/utils/setup.js && node src/utils/fakeProfiles.js "500"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 fakeProfiles script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wbaridon/.npm/_logs/2018-10-08T07_47_27_031Z-debug.log
/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Étang-la-Ville', 48.8673627, 2.0593977, 72, 1),('1118', 'Michel', 'Robin', true' at line 1
at Query.Sequence._packetToError (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
at Query.ErrorPacket (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)
at Protocol._parsePacket (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:278:23)
at Parser.write (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:38:16)
at Socket.<anonymous> (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:91:28)
at Socket.<anonymous> (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:502:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onread (net.js:638:20)
--------------------
at Protocol._enqueue (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Connection.query (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/node_modules/mysql/lib/Connection.js:200:25)
at Promise (/sgoinfre/goinfre/Perso/wbaridon/matcha/server/src/utils/fakeProfiles.js:209:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 fakeProfiles: `mysql.server start 2>&- 1>&-; sleep 1 && node src/utils/setup.js && node src/utils/fakeProfiles.js "500"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 fakeProfiles script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wbaridon/.npm/_logs/2018-10-08T07_59_51_771Z-debug.log
Solve
J'ai change le provider cote FakeProfiles pour que cela mette moins de temps. Je fait un call a l'api tous les 100ms.. En revanche que j'en fasse 1 ou 500 j'ai parfois une erreur sur le zipcode qui est problematique => Il se peut qu'il ne soit pas trouve. Une gestion d'erreur mettant une data par default pour la localisation si jamais le zipcode est pas trouve?