tangled
alpha
login
or
join now
rocksky.app
/
rocksky
96
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
96
fork
atom
overview
issues
7
pulls
pipelines
[api] handle redis client error
tsiry-sandratraina.com
8 months ago
445330f0
1836c749
+7
-1
1 changed file
expand all
collapse all
unified
split
apps
api
src
context.ts
+7
-1
apps/api/src/context.ts
···
33
33
analytics: axios.create({ baseURL: env.ANALYTICS }),
34
34
dropbox: axios.create({ baseURL: env.DROPBOX }),
35
35
googledrive: axios.create({ baseURL: env.GOOGLE_DRIVE }),
36
36
-
redis: await redis.createClient({ url: env.REDIS_URL }).connect(),
36
36
+
redis: await redis
37
37
+
.createClient({ url: env.REDIS_URL })
38
38
+
.on("error", (err) => {
39
39
+
console.error("Uncaught Redis Client Error", err);
40
40
+
process.exit(1);
41
41
+
})
42
42
+
.connect(),
37
43
meilisearch: axios.create({
38
44
baseURL: env.MEILISEARCH_URL,
39
45
headers: { Authorization: `Bearer ${env.MEILISEARCH_API_KEY}` },