Modern Devvit Web: `settings list` fails with "Failed to get app settings fields"

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start by reproducing the failure with npx @devvit/cli settings list for an app whose devvit.json defines settings.global. Then trace the CLI command's handling of app settings fields; the issue does not name a source file or test. Done means the command succeeds and lists the global settings.

Written by the indexing model from the issue text.

Description

Bug: devvit settings list fails for modern Devvit Web settings.global

Environment
  • App: teyahealth-cmo
  • @devvit/cli: 0.14.7
  • @devvit/server: 0.14.3
  • @devvit/public-api: 0.14.3
  • Uploaded app version: 0.0.17
Architecture

This is a modern Devvit Web application using:

  • devvit.json
  • settings.global

There are no legacy Devvit.addSettings() declarations.

The uploaded version reports:

  • hasDevvitJson: true
  • hasCustomSettings: false

The application builds successfully with 0 errors and all 34 tests pass.

Reproduction
  1. Define global settings under settings.global in devvit.json.

  2. Build the application.

  3. Upload successfully with:

    npx @devvit/cli upload

  4. Start a playtest:

    npx @devvit/cli playtest r/teyahealth_cmo_dev

  5. Run:

    npx @devvit/cli settings list

Actual result

The command fails with:

Error: Failed to get app settings fields.
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.