Ticket: Reddit app crashes on redirect during post scheduling

@Meowhib Just created a ticket
Question: Reddit crashes the app on redirect. How can I get it to work?
Attempted: It doesn't pass the client id in the URL so when I do it manually and get redirected back it crashes the app and have to restart it. Though reddit doesn't get added to the list even after the restart.
Working On: Just schduling redit posts
Using Postiz On: Coolify
Take it from here @Postiz
7 Replies
Meowhib
Meowhib4w ago
This is the error that I see in the logs
2024-11-30 10:45:23,689 INFO success: backend entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
{"message": "Unauthorized", "error": 401}
node:internal/process/promises:389
new UnhandledPromiseRejection(reason);
^

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<RefreshToken>".
at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
at processPromiseRejections (node:internal/process/promises:470:17)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.17.0
TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at async /app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27905
at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) {
digest: '4111376372',
[cause]: SocketError: other side closed
at Socket.<anonymous> (node:internal/deps/undici/undici:6020:28)
at Socket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '::1',
localPort: 40348,
remoteAddress: '::1',
remotePort: 3000,
remoteFamily: 'IPv6',
timeout: undefined,
bytesWritten: 1253,
bytesRead: 0
}
}
}
2024-11-30 10:47:10,458 WARN exited: backend (exit status 1; not expected)
2024-11-30 10:45:23,689 INFO success: backend entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
{"message": "Unauthorized", "error": 401}
node:internal/process/promises:389
new UnhandledPromiseRejection(reason);
^

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<RefreshToken>".
at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
at processPromiseRejections (node:internal/process/promises:470:17)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.17.0
TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at async /app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27905
at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) {
digest: '4111376372',
[cause]: SocketError: other side closed
at Socket.<anonymous> (node:internal/deps/undici/undici:6020:28)
at Socket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '::1',
localPort: 40348,
remoteAddress: '::1',
remotePort: 3000,
remoteFamily: 'IPv6',
timeout: undefined,
bytesWritten: 1253,
bytesRead: 0
}
}
}
2024-11-30 10:47:10,458 WARN exited: backend (exit status 1; not expected)
cao
cao4w ago
I see a mesage “unauthorized”
xcons
xcons4w ago
Yeah When you set your reddit environment variables, did you fully stop and re-deploy from Coolify? Coolify has a habit of leaving old container definitions with old environment variables
Meowhib
Meowhib4w ago
Yessir
Support
SupportOP4w ago
@Postiz please help @Meowhib
Meowhib
Meowhib4w ago
I managed to fix it I couldn't find a way to close this ticket
xcons
xcons3w ago
No worries, closing the ticket for you!

Did you find this page helpful?