Title: Application is failing when query parameter isn't provided · Issue #41 · php-coder/query2app · GitHub
Open Graph Title: Application is failing when query parameter isn't provided · Issue #41 · php-coder/query2app
X Title: Application is failing when query parameter isn't provided · Issue #41 · php-coder/query2app
Description: /Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:437 throw err; // Rethrow non-MySQL errors ^ Error: ER_PARSE_ERROR: You have an error in your SQL syntax; chec...
Open Graph Description: /Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:437 throw err; // Rethrow non-MySQL errors ^ Error: ER_PARSE_ERROR: Yo...
X Description: /Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:437 throw err; // Rethrow non-MySQL errors ^ Error: ER_PARSE_ERROR: Yo...
Opengraph URL: https://github.com/php-coder/query2app/issues/41
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Application is failing when query parameter isn't provided","articleBody":"```\r\n/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:437\r\n throw err; // Rethrow non-MySQL errors\r\n ^\r\n\r\nError: 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 'NULL' at line 1\r\n at Sequence._packetToError (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)\r\n at Query.ErrorPacket (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)\r\n at Protocol._parsePacket (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Protocol.js:291:23)\r\n at Parser._parsePacket (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:433:10)\r\n at Parser.write (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:43:10)\r\n at Protocol.write (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Protocol.js:38:16)\r\n at Socket.\u003canonymous> (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/Connection.js:88:28)\r\n at Socket.\u003canonymous> (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/Connection.js:526:10)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:324:12)\r\n --------------------\r\n at Pool.query (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/Pool.js:199:23)\r\n at /Users/coder/git/query2app/examples/js/express/mysql/routes.js:37:14\r\n at Layer.handle [as handle_request] (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/layer.js:95:5)\r\n at next (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/route.js:137:13)\r\n at Route.dispatch (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/route.js:112:3)\r\n at Layer.handle [as handle_request] (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/layer.js:95:5)\r\n at /Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/index.js:281:22\r\n at Function.process_params (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/index.js:341:12)\r\n at next (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/express@4.17.3/node_modules/express/lib/router/index.js:275:10)\r\n at jsonParser (/Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/body-parser@1.19.2/node_modules/body-parser/lib/types/json.js:110:7) {\r\n code: 'ER_PARSE_ERROR',\r\n errno: 1064,\r\n sqlMessage: \"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 'NULL' at line 1\",\r\n sqlState: '42000',\r\n index: 0,\r\n sql: 'SELECT id , name , name_ru , slug FROM categories LIMIT NULL'\r\n}\r\n\r\nNode.js v18.12.0\r\n```\r\n\r\nRegression after f524f15523d423024feadc1234f96595d159ce3d (#23)\r\n\r\nFor golang/chi, it seems like empty parameters is being treated as `0` and a call returns `[]` as result.\r\nFor python/fastapi there is no support for `post` yet, so it's not affected.","author":{"url":"https://github.com/php-coder","@type":"Person","name":"php-coder"},"datePublished":"2024-02-21T03:43:22Z","url":"https://github.com/php-coder/query2app/issues/41"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7404d076-1653-9bf0-cbdc-2055e641cf1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED8E:180DA2:10C84B:15AC94:6AFE450F |
| html-safe-nonce | f29e61475bcb98c3c2dca33589ab484ff3311d082ac0e0cef7102318ba9e7012 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDhFOjE4MERBMjoxMEM4NEI6MTVBQzk0OjZBRkU0NTBGIiwidmlzaXRvcl9pZCI6IjE3MTM4MjM1NjM1ODE5MDAwNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89f4dde3c860608948318f19b80ee2eee9bfaa70ffce120e9c6e65c68bd827b4 |
| hovercard-subject-tag | issue:2145752782 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-coder/query2app/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/668f4c94c24701bbe107e94b6b10fabd11c8e707c0c3b5cb723c765bbfbac5f2/php-coder/query2app/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/668f4c94c24701bbe107e94b6b10fabd11c8e707c0c3b5cb723c765bbfbac5f2/php-coder/query2app/issues/41 |
| og:image:alt | /Users/coder/git/query2app/examples/js/express/mysql/node_modules/.pnpm/mysql@2.18.1/node_modules/mysql/lib/protocol/Parser.js:437 throw err; // Rethrow non-MySQL errors ^ Error: ER_PARSE_ERROR: Yo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | php-coder |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c |
| turbo-cache-control | no-preview |
| go-import | github.com/php-coder/query2app git https://github.com/php-coder/query2app.git |
| octolytics-dimension-user_id | 87088 |
| octolytics-dimension-user_login | php-coder |
| octolytics-dimension-repository_id | 279082426 |
| octolytics-dimension-repository_nwo | php-coder/query2app |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 279082426 |
| octolytics-dimension-repository_network_root_nwo | php-coder/query2app |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ce393ea11ad276623b946bc9663d3e7d6f564275 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width