Save query Internal Server Error
See original GitHub issueWhen i want to save my query text. but sqlpad show " Internal Server Error",
Version: 5.6.0 in Docker. There is no problem using version 4.4 before, just upgraded to the latest version
The newly created query is no problem to save, I save the old one sqlpad is error, And I noticed that the newly created query id is in the form of guid, but the old one is a random string, I don’t know if it is related to this
Error Info:
{ "level": 30, "time": "2020-09-25T02:13:29.288Z", "pid": 1, "hostname": "xxx.xxx.com", "name": "sqlpad-web", "req": { "id": 34, "method": "PUT", "url": "/api/queries/Zp00kFFs7HnEZhcW" }, "res": { "statusCode": 500 }, "err": { "type": "Error", "message": "failed with status code 500", "stack": "Error: failed with status code 500\n at ServerResponse.onResFinished (/usr/app/node_modules/pino-http/logger.js:73:38)\n at ServerResponse.emit (events.js:327:22)\n at onFinish (_http_outgoing.js:723:10)\n at onCorkedFinish (_stream_writable.js:673:5)\n at afterWrite (_stream_writable.js:490:5)\n at onwrite (_stream_writable.js:470:7)\n at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:101:10)" }, "responseTime": 30, "msg": "request errored" }
Issue Analytics
- State:
- Created 3 years ago
- Comments:5

Top Related StackOverflow Question
Hi, @rickbergfalk,
After upgrading to the new version, the old data has been unavailable, my data is only dozens of pieces, so I manually added to the new version from the old backup database. But, that upgrade did cause any data in the old version to be inoperable, only the newly added data in the new version is normal. In the that version, It work fine, So if you can’t reproduce it then don’t care, you can close this issue.
Thanks @Kerwin1202 this information is perfect! Will try to reproduce later and see if I can figure out what’s going on