P
Postiz2mo ago
Support

Ticket: installation

@zac_goose Just created a ticket
Question: Error when trying to remove an account that "needs to be reconnected". when you click on the menu button it takes you to the reconnection screen, so if you do not have permission for that account it crashes postiz
Attempted: restarting stack (docker) starts again fine, can reproduce with above steps.
Working On: intergrations
Take it from here @Postiz
9 Replies
zac_goose
zac_goose2mo ago
2024-10-28T15:22:56.980335048Z | error={"message":"Unsupported get request. Object with ID 'undefined' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AHd4t95dSsV55YGHAQXlgzl"} 2024-10-28T15:22:56.982031453Z node:internal/process/promises:389 2024-10-28T15:22:56.982042946Z new UnhandledPromiseRejection(reason); 2024-10-28T15:22:56.982045200Z ^ 2024-10-28T15:22:56.982046763Z 2024-10-28T15:22:56.982048366Z 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 "#<BadBody>". 2024-10-28T15:22:56.982050710Z at throwUnhandledRejectionsMode (node:internal/process/promises:389:7) 2024-10-28T15:22:56.982052233Z at processPromiseRejections (node:internal/process/promises:470:17) 2024-10-28T15:22:56.982053696Z at process.processTicksAndRejections (node:internal/process/task_queues:96:32) { 2024-10-28T15:22:56.982055099Z code: 'ERR_UNHANDLED_REJECTION' 2024-10-28T15:22:56.982056411Z } 2024-10-28T15:22:56.982057683Z 2024-10-28T15:22:56.982058996Z Node.js v20.17.0 2024-10-28T15:22:56.998860542Z TypeError: fetch failed 2024-10-28T15:22:56.998875119Z at node:internal/deps/undici/undici:13178:13 2024-10-28T15:22:56.998877934Z at async /app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27862 2024-10-28T15:22:56.998880169Z at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) { 2024-10-28T15:22:56.998882062Z digest: '1128623668', I'm heading out so won't be back for a day.
Nevo David
Nevo David2mo ago
Oh, let me check that asap But how can reconnection doesn't work this is weird which platform are you using?
zac_goose
zac_goose2mo ago
Let me grab the some more host logs, it’s running in the docker stack 2024-10-28T15:22:56.982031453Z node:internal/process/promises:389 2024-10-28T15:22:56.982042946Z new UnhandledPromiseRejection(reason); 2024-10-28T15:22:56.982045200Z ^ 2024-10-28T15:22:56.982046763Z 2024-10-28T15:22:56.982048366Z 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 "#<BadBody>". 2024-10-28T15:22:56.982050710Z at throwUnhandledRejectionsMode (node:internal/process/promises:389:7) 2024-10-28T15:22:56.982052233Z at processPromiseRejections (node:internal/process/promises:470:17) 2024-10-28T15:22:56.982053696Z at process.processTicksAndRejections (node:internal/process/task_queues:96:32) { 2024-10-28T15:22:56.982055099Z code: 'ERR_UNHANDLED_REJECTION' 2024-10-28T15:22:56.982056411Z } 2024-10-28T15:22:56.982058996Z Node.js v20.17.0 2024-10-28T15:22:56.998860542Z TypeError: fetch failed 2024-10-28T15:22:56.998875119Z at node:internal/deps/undici/undici:13178:13 2024-10-28T15:22:56.998877934Z at async /app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27862 2024-10-28T15:22:56.998880169Z at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) { 2024-10-28T15:22:56.998882062Z digest: '1128623668', 2024-10-28T15:22:56.998883805Z [cause]: SocketError: other side closed 2024-10-28T15:22:56.998885530Z at Socket.<anonymous> (node:internal/deps/undici/undici:6020:28) 2024-10-28T15:22:56.998888004Z at Socket.emit (node:events:531:35) 2024-10-28T15:22:56.998889838Z at endReadableNT (node:internal/streams/readable:1696:12) 2024-10-28T15:22:56.998891601Z at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 2024-10-28T15:22:56.998893374Z code: 'UND_ERR_SOCKET', 2024-10-28T15:22:56.998902792Z socket: { 2024-10-28T15:22:56.998904545Z localAddress: '::1', 2024-10-28T15:22:56.998906198Z localPort: 46210, 2024-10-28T15:22:56.998907791Z remoteAddress: '::1', 2024-10-28T15:22:56.998909415Z remotePort: 3000, 2024-10-28T15:22:56.998911018Z remoteFamily: 'IPv6', 2024-10-28T15:22:56.998912651Z timeout: undefined, 2024-10-28T15:22:56.998914264Z bytesWritten: 1645, 2024-10-28T15:22:56.998915907Z bytesRead: 0 2024-10-28T15:22:56.998917500Z } 2024-10-28T15:22:56.998919143Z } 2024-10-28T15:22:56.998920846Z } 2024-10-28T15:22:57.000555626Z 2024-10-28 15:22:57,000 WARN exited: backend (exit status 1; not expected) 2024-10-28T15:23:16.117667919Z ERR | ts=1730128996.117479 logger=http.log.error msg=dial tcp [::1]:3000: connect: connection refused request={"remote_ip":"192.168.20.23","remote_port":"35516","client_ip":"192.168.20.23","proto":"HTTP/1.1","method":"GET","host":"postiz.gooseweb.win","uri":"/api/user/self","headers":{"Accept":["application/json"],"Priority":["u=4"],"X-Real-Ip":["192.168.20.1"],"Connection":["close"],"Referer":["https://postiz.gooseweb.win/launches"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["192.168.20.1"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Content-Type":["application/json"],"Dnt":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0"],"Accept-Language":["en-US,en;q=0.5"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"],"Cookie":[],"X-Forwarded-Scheme":["https"],"Sec-Gpc":["1"]}} duration=0.000318256 status=502 err_id=8pfd4k9fp err_trace=reverseproxy.statusError (reverseproxy.go:1267) 2024-10-28T15:23:17.506868317Z ERR | ts=1730128997.506688 logger=http.log.error msg=dial tcp [::1]:3000: connect: connection refused request={"remote_ip":"192.168.20.23","remote_port":"45562","client_ip":"192.168.20.23","proto":"HTTP/1.1","method":"GET","host":"postiz.gooseweb.win","uri":"/api/user/self","headers":{"Accept-Language":["en-US,en;q=0.5"],"Sec-Fetch-Site":["same-origin"],"Cache-Control":["no-cache"],"X-Forwarded-Scheme":["https"],"X-Real-Ip":["192.168.20.1"],"Accept":["application/json"],"Referer":["https://postiz.gooseweb.win/launches"],"Content-Type":["application/json"],"Sec-Fetch-Mode":["cors"],"Priority":["u=4"],"X-Forwarded-For":["192.168.20.1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Sec-Fetch-Dest":["empty"],"Pragma":["no-cache"],"Cookie":[],"X-Forwarded-Proto":["https"],"Connection":["close"],"Dnt":["1"],"Sec-Gpc":["1"]}} duration=0.000326752 status=502 err_id=56tcxuax5 err_trace=reverseproxy.statusError (reverseproxy.go:1267) it seems to be crashign the back end job, thats causing the system to stop responding
Nevo David
Nevo David2mo ago
@zac_goose is it for a specific channel or for all channels?
zac_goose
zac_goose2mo ago
have only tested with instagram/facebook accounts (all we have connected)
Nevo David
Nevo David2mo ago
I published a new version can you check it?
zac_goose
zac_goose2mo ago
it does now allow me to click on the menu and remove the account but still getting an error that kills the backend upon trying to reconnect an account that you don't have permissions for:

error={"message":"Unsupported get request. Object with ID 'undefined' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AU4Q9LvjjLy3O9CHFAiKL6B"}

2024-11-01T11:48:48.758387608Z node:internal/process/promises:389

2024-11-01T11:48:48.758403558Z new UnhandledPromiseRejection(reason);

2024-11-01T11:48:48.758405892Z ^

2024-11-01T11:48:48.758407395Z

2024-11-01T11:48:48.758409078Z 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 "#<BadBody>".

2024-11-01T11:48:48.758411272Z at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)

2024-11-01T11:48:48.758412775Z at processPromiseRejections (node:internal/process/promises:470:17)

2024-11-01T11:48:48.758414278Z at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {

2024-11-01T11:48:48.758426352Z code: 'ERR_UNHANDLED_REJECTION'

2024-11-01T11:48:48.758429628Z }
it does now allow me to click on the menu and remove the account but still getting an error that kills the backend upon trying to reconnect an account that you don't have permissions for:

error={"message":"Unsupported get request. Object with ID 'undefined' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AU4Q9LvjjLy3O9CHFAiKL6B"}

2024-11-01T11:48:48.758387608Z node:internal/process/promises:389

2024-11-01T11:48:48.758403558Z new UnhandledPromiseRejection(reason);

2024-11-01T11:48:48.758405892Z ^

2024-11-01T11:48:48.758407395Z

2024-11-01T11:48:48.758409078Z 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 "#<BadBody>".

2024-11-01T11:48:48.758411272Z at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)

2024-11-01T11:48:48.758412775Z at processPromiseRejections (node:internal/process/promises:470:17)

2024-11-01T11:48:48.758414278Z at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {

2024-11-01T11:48:48.758426352Z code: 'ERR_UNHANDLED_REJECTION'

2024-11-01T11:48:48.758429628Z }
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:27904

at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) {

digest: '1760613429',

[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: 48074,

remoteAddress: '::1',

remotePort: 3000,

remoteFamily: 'IPv6',

timeout: undefined,

bytesWritten: 1645,

bytesRead: 0

}

}

}
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:27904

at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26927) {

digest: '1760613429',

[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: 48074,

remoteAddress: '::1',

remotePort: 3000,

remoteFamily: 'IPv6',

timeout: undefined,

bytesWritten: 1645,

bytesRead: 0

}

}

}
xcons
xcons2mo ago
@zac_goose , when you post long code messages to discord, please use 3x ` to make code blocks Yeah, generally issues like this will crash the backend at the moment We need to add more error handling around this
zac_goose
zac_goose5d ago
node:internal/deps/undici/undici:13178
Error.captureStackTrace(err);
^

TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async FacebookProvider.fetch (/app/dist/apps/backend/main.js:3852:25)
at async FacebookProvider.authenticate (/app/dist/apps/backend/main.js:10049:39)
at async validName (/app/dist/apps/backend/main.js:17683:26) {
[cause]: AggregateError [ETIMEDOUT]:
at internalConnectMultiple (node:net:1118:18)
at internalConnectMultiple (node:net:1186:5)
at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
code: 'ETIMEDOUT',
[errors]: [
Error: connect ETIMEDOUT 157.240.241.17:443
at createConnectionError (node:net:1648:14)
at Timeout.internalConnectMultipleTimeout (node:net:1707:38)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '157.240.241.17',
port: 443
},
Error: connect ENETUNREACH 2a03:2880:f012:100:face:b00c:0:2:443 - Local (:::0)
at internalConnectMultiple (node:net:1182:16)
at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2a03:2880:f012:100:face:b00c:0:2',
port: 443
}
]
}
}
node:internal/deps/undici/undici:13178
Error.captureStackTrace(err);
^

TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async FacebookProvider.fetch (/app/dist/apps/backend/main.js:3852:25)
at async FacebookProvider.authenticate (/app/dist/apps/backend/main.js:10049:39)
at async validName (/app/dist/apps/backend/main.js:17683:26) {
[cause]: AggregateError [ETIMEDOUT]:
at internalConnectMultiple (node:net:1118:18)
at internalConnectMultiple (node:net:1186:5)
at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
code: 'ETIMEDOUT',
[errors]: [
Error: connect ETIMEDOUT 157.240.241.17:443
at createConnectionError (node:net:1648:14)
at Timeout.internalConnectMultipleTimeout (node:net:1707:38)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '157.240.241.17',
port: 443
},
Error: connect ENETUNREACH 2a03:2880:f012:100:face:b00c:0:2:443 - Local (:::0)
at internalConnectMultiple (node:net:1182:16)
at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2a03:2880:f012:100:face:b00c:0:2',
port: 443
}
]
}
}
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:27731
at async it (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26753) {
digest: '353303767',
[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: 45916,
remoteAddress: '::1',
remotePort: 3000,
remoteFamily: 'IPv6',
timeout: undefined,
bytesWritten: 1644,
bytesRead: 0
}
}
}
2024-12-14 16:18:51,523 WARN exited: backend (exit status 1; not expected)
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:27731
at async it (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:26753) {
digest: '353303767',
[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: 45916,
remoteAddress: '::1',
remotePort: 3000,
remoteFamily: 'IPv6',
timeout: undefined,
bytesWritten: 1644,
bytesRead: 0
}
}
}
2024-12-14 16:18:51,523 WARN exited: backend (exit status 1; not expected)
Come back to this after a bit, after removing and trying to reconnect my own accounts I'm getting the following error?
Want results from more Discord servers?
Add your server