Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] (convertIpv6ToIpv4) TypeError: Cannot read properties of undefined (reading 'replace') #971

Open
platfowner opened this issue Mar 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@platfowner
Copy link
Member

platfowner commented Mar 17, 2022

We tried to fix this issue some how on Feb (pr: #949), it's still in the logs.

error_logs.txt:

express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
TypeError: Cannot read properties of undefined (reading 'replace')
    at convertIpv6ToIpv4 (/home/ain-blockchain-2022-02-09T08-11/common/network-util.js:123:18)
    at /home/ain-blockchain-2022-02-09T08-11/client/index.js:118:16
    at middleware (/home/ain-blockchain-2022-02-09T08-11/node_modules/ip-whitelist/index.js:22:25)
    at Layer.handle [as handle_request] (/home/ain-blockchain-2022-02-09T08-11/node_modules/express/lib/router/layer
.js:95:5)
    at trim_prefix (/home/ain-blockchain-2022-02-09T08-11/node_modules/express/lib/router/index.js:323:13)
    at /home/ain-blockchain-2022-02-09T08-11/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/ain-blockchain-2022-02-09T08-11/node_modules/express/lib/router/index.js:341:1
2)
    at next (/home/ain-blockchain-2022-02-09T08-11/node_modules/express/lib/router/index.js:275:10)
    at /home/ain-blockchain-2022-02-09T08-11/node_modules/express-rate-limit/lib/express-rate-limit.js:170:15
    at runMicrotasks (<anonymous>)
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may
 be indicative of a larger issue.
@platfowner
Copy link
Member Author

Some messages are still observed:
error_logs.txt:

express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.
express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants