a problem with custom post creation

Open
#258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
node.js, typescript
Domain
api, backend

Research direction

Reproduce the three failing calls in the playtest environment, then start by tracing the GenericPluginClient.SubmitCustomPost and GenericPluginClient.Submit errors. Confirm whether the USER, APP, and fallback submission paths share the same failure; the work is done when custom and plain post creation succeed in playtest.

Written by the indexing model from the issue text.

Description

Environment:

  • Subreddit: r/mydevvitbottest2
  • Devvit CLI: @devvit/cli/0.12.23-next-2026-05-05-17-20-47-e5daaf644.0
  • @devvit/web: 0.12.23-next-2026-05-05-17-20-47-e5daaf644.0
  • Node: v20.19.0

Problem:
Both reddit.submitCustomPost() and fallback reddit.submitPost() fail in playtest with:
Error: undefined undefined: undefined

This happens for:

  1. submitCustomPost({ runAs: 'USER', entry: 'default', userGeneratedContent, textFallback })
  2. submitCustomPost({ runAs: 'APP', entry: 'default', textFallback })
  3. submitPost({ runAs: 'APP', text })

All post creation calls fail with the same gRPC error:

  • GenericPluginClient.SubmitCustomPost
  • GenericPluginClient.Submit

What I already tried

  • Added permissions.reddit.asUser: ["SUBMIT_POST"] to devvit.json
  • Uploaded a fresh version and explicitly installed [email protected] to r/mydevvitbottest2
  • Confirmed the local playtest CLI is already on 0.12.23-next
  • Rebuilt and restarted playtest cleanly
  • Verified the same failure happens for both USER and APP runs, and also for plain submitPost()
Dominant language
TypeScript
Stars
217
Forks
89
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reddit/devvit

All issues in reddit/devvit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.