Twitter / X Post Returns "An Error Occurred While Publishing This Post"
Author: jchamboCreated May 11, 2026Updated Sep 17, 2026
Labelstype: bugstale
Description
I set up and configured the X developer account and app information according to this guide (mind you, it seems outdated), and I was able to add X as a channel successfully after, but when I go to make a Post, I get this error:
"An Error Occurred While Publishing This Post"
When looking at the container logs in DokPloy, I see this:
2|orchestrator | 2026-05-11T16:39:29.436Z [WARN] Activity failed {
2|orchestrator | sdkComponent: 'worker',
2|orchestrator | taskQueue: 'x',
2|orchestrator | isLocal: false,
2|orchestrator | attempt: 1,
2|orchestrator | namespace: 'default',
2|orchestrator | taskToken: 'CiQwZDQ5ZDVkNS0xNGEzLTQzYzItYThhNi04OGJlYjNmNTc1ODISHnBvc3RfY21wMWZmdWMzMDAxMnF3NnhsY25ocWw5eBokMDE5ZTE3ZTgtNmE2Yy03MTQwLTg5NjEtZWRjNGY2ODVmZGJkIBAoATIBMkIKcG9zdFNvY2lhbEoICAEQgZBAGAE=',
2|orchestrator | workflowId: 'post_cmp1ffuc30012qw6xlcnhql9x',
2|orchestrator | workflowRunId: '019e17e8-6a6c-7140-8961-edc4f685fdbd',
2|orchestrator | workflowType: 'postWorkflowV102',
2|orchestrator | activityId: '2',
2|orchestrator | activityType: 'postSocial',
2|orchestrator | error: ApplicationFailure: Unknown Error
2|orchestrator | at XProvider.runInConcurrent (/app/libraries/nestjs-libraries/src/integrations/social.abstract.ts:95:13)
2|orchestrator | at processTicksAndRejections (node:internal/process/task_queues:105:5)
2|orchestrator | at XProvider.post (/app/libraries/nestjs-libraries/src/integrations/social/x.provider.ts:390:48)
2|orchestrator | at PostActivity.postSocial (/app/apps/orchestrator/src/activities/post.activity.ts:171:21)
2|orchestrator | at Activity.execute (/app/node_modules/@temporalio/worker/src/activity.ts:138:14)
2|orchestrator | at NativeConnection.withAbortSignal (/app/node_modules/@temporalio/worker/src/connection.ts:220:12)
2|orchestrator | at Client.withAbortSignal (/app/node_modules/@temporalio/client/src/base-client.ts:105:12)
2|orchestrator | at /app/node_modules/@temporalio/worker/src/activity.ts:192:24
2|orchestrator | at /app/node_modules/@temporalio/worker/src/worker.ts:1208:24 {
2|orchestrator | cause: undefined,
2|orchestrator | failure: undefined,
2|orchestrator | type: 'bad_body',
2|orchestrator | nonRetryable: true,
2|orchestrator | details: [ [Object] ],
2|orchestrator | nextRetryDelay: undefined,
2|orchestrator | category: undefined
2|orchestrator | },
2|orchestrator | durationMs: 231
2|orchestrator | }What's the fix for this?
Reproduction steps
- Connect your X account via these instructions (appear outdated?)
- Schedule or Create a Post
- Error should show immediately
Expected behavior
It should work?
Actual Behavior with Screenshots
"An Error Occurred While Publishing This Post"
Operating system
Linux
Node Version
v22.20.0
Provide any additional context for the Bug.
No response
Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
Are you willing to submit PR?
None
Source: gitroomhq/postiz-app