Cannot parse the db number correctly
See original GitHub issueI am getting this error:
{ ReplyError: ERR DB index is out of range
at parseError (/root/interos/repos/ntrs-cli/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/root/interos/repos/ntrs-cli/node_modules/redis-parser/lib/parser.js:302:14) command: { name: 'select', args: [ '20127' ] } }
here is what I have:
const client_db0 = new Redis(`redis://${conf["platform-build.public-dns"]}:6379/0`);
const client_db1 = new Redis(`redis://${conf["platform-build.public-dns"]}:6379/1`);
const client_db2 = new Redis(`redis://${conf["platform-build.public-dns"]}:6379/2`);
const client_db3 = new Redis(`redis://${conf["platform-build.public-dns"]}:6379/3`);
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Parser can not parse the correct code:{ 0 = 0and 1 = 1 ...
The code below is compiled and executed in Oracle Database 18c (18.4), but the parser (Version 20.2.0.175) cannot parse it.
Read more >Error: pg_atoi: error in "<xxx>": can't parse "<xxx>" - IBM
This query is joining a varchar field to a integer field. The system will cast the varchar field to an integer thus resulting...
Read more >Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >We couldn't parse the input provided as a Date value. - YouTube
Importing a text file - Error with a bad input: We couldn't parse the input provided as a Date value ... Your browser...
Read more >Cannot parse expression of type DateTime - Stack Overflow
For the test purpose I use datetime.now (100% correct datetime) ... DB::Exception: Cannot parse expression of type DateTime here: 2021-11-01 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
because space is encode to
%20
so it becomesredis://%20127.0.0.1:6379/1
that error is quite misleading