question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QueryFailedError: ER_PARSE_ERROR: You have an error in your SQL syntax

See original GitHub issue

Failed to GET /api/charts.json (500) Please screenshot this error message and report it in

{
   "error":{
      "message":"QueryFailedError: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>>\"$.title\" AS title,\n        charts.config->>\"$.slug\" AS slug,\n        charts.c' at line 3\n    at new QueryFailedError (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\src\\error\\QueryFailedError.ts:9:9)\n    at Query. (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\src\\driver\\mysql\\MysqlQueryRunner.ts:166:37)\n    at Query. (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\Connection.js:525:10)\n    at Query._callback (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\Connection.js:491:16)\n    at Query.Sequence.end (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\sequences\\Sequence.js:83:24)\n    at Query.ErrorPacket (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\sequences\\Query.js:90:8)\n    at Protocol._parsePacket (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\Protocol.js:291:23)\n    at Parser._parsePacket (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\Parser.js:433:10)\n    at Parser.write (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\Parser.js:43:10)\n    at Protocol.write (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\protocol\\Protocol.js:38:16)\n    at Socket. (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\Connection.js:91:28)\n    at Socket. (C:\\Users\\user\\Desktop\\Interview\\React\\grapher\\node_modules\\mysql\\lib\\Connection.js:525:10)\n    at Socket.emit (events.js:198:13)\n    at addChunk (_stream_readable.js:288:12)\n    at readableAddChunk (_stream_readable.js:269:11)\n    at Socket.Readable.push (_stream_readable.js:224:10)",
      "status":500
   }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelgerbercommented, Jun 12, 2020

Either your database server or client is not MySQL but MariaDB. Otherwise, your error message wouldn’t contain check the manual that corresponds to your MariaDB server version.

0reactions
breck7commented, Jun 15, 2020

something like yarn bake-single to bake only a single grapher page (with its JSON data, and maybe exports, too) something like bake-grapher, which bakes all grapher pages but not posts (which might take quite a long time, at least the first time around)

I concur!

I think if we can try to refactor out the global settings.ts, and make all the baking functions functional, that would allow us to start making a number of improvements to the baking code such as baking a single chart or even baking the full site to an arbitrary folder on disk.

I had started a little refactor of the baker a while ago but then put that on the backburner, so it’s useful to hear others might benefit from a Baker refactor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ER_PARSE_ERROR: You have an error in your SQL syntax
I'm trying to insert values using mysql in nodejs. I had written the following code and installed ...
Read more >
ER_PARSE_ERROR: You have an error in your SQL syntax
Hello everybody. I'm new to Node Red. I'm about to replace a JS module that has been running on my NAS for some...
Read more >
Node.js - MySQL - ER_PARSE_ERROR with placeholders
I was trying to select records in my database (MySQL), but I got this response: ... sqlMessage: "You have an error in your...
Read more >
ER_PARSE_ERROR: You have an error in your SQL syntax
Hi! Have created connection with local mysql 5.7.19 and created 1 content type with one field title via admin panel. But the new...
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Message: You have an error in your SQL syntax; check the manual that ... Check the 'Function Name Parsing and Resolution' section in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found