You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while submitting a form through netlify API I get this error:
» Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
Error: Positional replacement (?) 0 has no entry in the replacement map (replacements[0] is undefined).
at injectReplacements (E:\devnew\tourista-netlify-api\node_modules\sequelize\lib\utils\sql.js:151:15)
at Sequelize.query (E:\devnew\tourista-netlify-api\node_modules\sequelize\lib\sequelize.js:286:13)
at module.exports.submit_form_post (E:\devnew\tourista-netlify-api\controllers\apiController.js:49:35)
at Layer.handle [as handle_request] (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\layer.js:95:5)
at next (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\layer.js:95:5)
at E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:284:15
at Function.process_params (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:346:12)
at next (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:280:10)
this is a basic express app with a post api that has the following values:
{"fullname":"Md Farhan Asif","mobile":"07472881031","email":"[email protected]","country":235,"profession":"7","comment":"hi","visatype":"Tourist Visa","helptype":"Visa Assistance"}
the db connection is remote and used mysql2 and sequelize
Describe the bug
while submitting a form through netlify API I get this error:
» Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
npm install -g netlify-cli@VERSION
You can use any version from https://ntl.fyi/cli-versions.
Please report this problem at https://ntl.fyi/cli-error including the error details below.
Error: Positional replacement (?) 0 has no entry in the replacement map (replacements[0] is undefined).
at injectReplacements (E:\devnew\tourista-netlify-api\node_modules\sequelize\lib\utils\sql.js:151:15)
at Sequelize.query (E:\devnew\tourista-netlify-api\node_modules\sequelize\lib\sequelize.js:286:13)
at module.exports.submit_form_post (E:\devnew\tourista-netlify-api\controllers\apiController.js:49:35)
at Layer.handle [as handle_request] (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\layer.js:95:5)
at next (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\layer.js:95:5)
at E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:284:15
at Function.process_params (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:346:12)
at next (E:\devnew\tourista-netlify-api\node_modules\express\lib\router\index.js:280:10)
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Binaries:
Node: 21.1.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Steps to reproduce
this is a basic express app with a post api that has the following values:
{"fullname":"Md Farhan Asif","mobile":"07472881031","email":"[email protected]","country":235,"profession":"7","comment":"hi","visatype":"Tourist Visa","helptype":"Visa Assistance"}
the db connection is remote and used mysql2 and sequelize
Configuration
[build]
functions = "netlify/functions"
[functions]
If you need to include specific external modules
external_node_modules = [
"express",
"serverless-http",
"mysql2",
"dotenv",
"nodemailer",
"sequelize",
"body-parser",
"cookie-parser",
"cors",
"csurf"
]
Environment
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Memory: 4.45 GB / 15.56 GB
Binaries:
Node: 21.1.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered: