JSON API returns no data with custom redis server AWS elasticache
- Dominant language
- JavaScript
- Stars
- 9.4k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
So I have this node express app with kue and kue-ui-express. When I use default redis-server the json api returns data without problems. However when I moved to AWS and have a separate redis elasticache installation my app can connect to redis and kue saves data to the redis instance on aws but any query to the JSON API returns empty array. Code and example below. I am not sure what needs to be added to code to get the JSON APi working.
//server.js
var kue = require('kue'), queue = kue.createQueue({
prefix: 'q',
redis: {
port: 6379,
host: '',
options: {
disableSearch: false
}
}
}); //redis connection works AWS, i can see data in kue-ui-express for each job
var kueUiExpress = require('kue-ui-express');
kueUiExpress(app, '/kue/', '/kue-api/');
app.use('/kue-api/', kue.app);
const port = process.env.PORT || '3000';
app.set('port', port);
const server = http.createServer(app);
server.listen(port, () => console.log(`Running server on port: ${port}`));
//JSON API calls that work with default redis-server but does not return data with AWS.
http://mydomain.com/kue-api/job/search?q=useremail returns an empty array with AWS redis but returns data with default redis.
Any help is much appreciated.
Thanks.
Aakash.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with server.js and the kue.app JSON API wiring, then reproduce /kue-api/job/search?q=useremail against the default Redis server and AWS ElastiCache. Compare the stored jobs and API results; done means the JSON API returns the expected job data with the custom Redis server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, express, node.js, redis
- Domain
- api, backend, cloud, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100