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.

Cannot parse the db number correctly

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tuananhcommented, Sep 30, 2019

because space is encode to %20 so it becomes redis://%20127.0.0.1:6379/1

1reaction
tuananhcommented, Sep 26, 2019

that error is quite misleading

Read more comments on GitHub >

github_iconTop 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 >

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