Comments (6)
Sounds like you are having a redis issue and not a dillinger issue.
I would have a look at the node redis client and see what they do for password protected redis instances.
It appears you just need to pass it an options hash:
https://github.com/bnoguchi/redis-node
from dillinger.
As for redis.conf , it's a simple:
requirepass PLAIN_TEXT_PASSWORD
My code looks like this:
function initRedis(){
redisClient = redis.createClient();
redisClient.on("error", function (err) {
console.log("Redis connection error to " + redisClient.host + ":" + redisClient.port + " - " + err);
});
redisClient.on("connect", function (err){ console.log("Connection done"); redisClient.auth("PASSWORD", function (err) { }); });
redisClient.on("reconnect", function (err){ console.log("Re-Connection done"); redisClient.auth("PASSWORD", function (err) { }); });
RedisStore = require('connect-redis')(express);
}
And the error looks like this
/home/nodejs/dillinger # node app.js
Connection done
Redis connection error to 127.0.0.1:6379 - Ready check failed: Error: Error: ERR operation not permitted
Maybe related to https://github.com/mranney/node_redis/issues/search?q=auth
from dillinger.
I'm lost or the dependency is http://github.com/mranney/node_redis instead of https://github.com/bnoguchi/redis-node ?
That's the one (version 0.6.7) listed under dillinger/node_modules/redis/package.json
from dillinger.
Oops sorry about that, yeah it is the one listed in the package.json
. Nonetheless, the redis client module is the issue, not Dllinger. =)
from dillinger.
did you get this sorted out?
from dillinger.
Closing as my assumption is this has been resolved.
from dillinger.
Related Issues (20)
- Error on npm i HOT 2
- Graceful way to upgrade dependencies HOT 2
- Doesn't scroll with up/down arrow keys
- Documentation/Installation Issues: Node Version HOT 3
- [bug] Zen Mode - autosave doesn't work
- Build status? Travis CI link goes 404
- Is this repo still maintained? README vastly out of date (not even node 16 supported) HOT 4
- Dillinger fails to understand expression inside LaTeX environment
- File size issue
- Use Chrome Extension to manipulate the markdown HOT 1
- Using unicode format codepoint Word Joiner is buggy
- OneDrive Import -> "This API is no longer supported"
- Dropbox plugin secretkey error
- Ordered list items with parentheses don't expand in PDF export HOT 1
- Bug: Unable to import locale file (binary file)
- Feature: "Import from" any remote git repo (Forgejo, Gitea, GitLab)
- Site down HOT 1
- Dillinger does not parse soft line-breaks
- Support for MARP
- Website down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dillinger.