gitroomhq/postiz-app · error · Error
${handleError.value}
Error message
${handleError.value} What it means
MeWe post creation returned a non-ok response and handleErrors recognized the error body, so this Error rethrows MeWe's mapped error message (handleError.value). This is a translated MeWe API error (e.g. session expired, group restriction) surfaced to the user.
Source
Thrown at libraries/nestjs-libraries/src/integrations/social/mewe.provider.ts:278
}
const postUrl =
postType === 'timeline'
? `${this.meweHost}/api/dev/me/post`
: `${this.meweHost}/api/dev/group/${groupId}/post`;
// MeWe post endpoint may return 204 (no content), so use raw fetch
const postResponse = await fetch(postUrl, {
method: 'POST',
headers: this.authHeaders(accessToken),
body: JSON.stringify(postBody),
});
if (!postResponse.ok) {
const errorText = await postResponse.text();
const handleError = this.handleErrors(errorText);
if (handleError) {
throw new Error(handleError.value);
}
throw new Error('Failed to create MeWe post');
}
const postId = makeId(12);
const releaseURL = postType === 'timeline' ? `https://mewe.com/${integration.profile}/posts` : `https://mewe.com/group/${firstPost.settings.group}`;
return [
{
id: firstPost.id,
postId,
releaseURL,
status: 'success',
},
];
}
}View on GitHub (pinned to 0f1647f749)
Solutions
- Read the thrown message — it is MeWe's own error text
- Re-authenticate the MeWe integration if session-related
- Verify membership/permissions for the target group
- Retry after a delay if rate-limited
Defensive patterns
Strategy: try-catch
Try / catch
catch (e) { if ((e as Error).message === mappedValue) { /* handle known MeWe error */ } } Prevention
- Keep auth cookies fresh
- Handle mapped error values from handleErrors explicitly
When it happens
Trigger: POST to MeWe's post-creation endpoint fails with a body matching a known error pattern in this.handleErrors().
Common situations: Expired auth/session, posting to a group the account left, rate limiting, or content policy rejection by MeWe.
Related errors
AI-assisted analysis of gitroomhq/postiz-app@0f1647f749 (2026-08-27).
Data as JSON: /api/errors/137b98a29387b688.
Report an issue: GitHub.