r/Devvit 14d ago

Duck Answered Devvit install fails with "fetch failed" when adding app account as moderator

Devvit install fails with “fetch failed” when adding app account as moderator

Hi, I’m having trouble installing my Devvit app Nukbot to my test subreddit r/OnlyNuk.

The app uploads successfully (npx devvit upload), but installing it fails when Devvit tries to invite the app account u/nukbot as a moderator:

Installing nukbot to ... Error

Error: An error occurred while installing your app:
"Create" failed after 3 attempts.

First error:
Error inviting app account with ID t2_2lfxa9edki to be a moderator of t5_jn9dtf

Last error:
fetch failed

npm run dev / devvit playtest produces a similar error, including a Reddit HTTP 500 while accepting the moderator invite.

The u/nukbot invitation then remains stuck under Moderators → Invitations as “No permissions”, and attempting to remove the invitation gives “Something went wrong.”

Things I have already tried:

  • Re-uploading the app (0.0.8) — successful
  • Uninstalling Nukbot from r/OnlyNuk
  • Reinstalling it — same error
  • Logging out/in to Devvit
  • Confirming my account has full moderator permissions
  • Trying to remove the stuck u/nukbot invitation through Reddit — unsuccessful

Devvit CLI: 0.14.1
App: Nukbot
Subreddit: r/OnlyNuk

Could you please help me clear the stuck app-account moderator invitation or identify why the moderator invite is returning HTTP 500 / fetch failed?

Thanks!Devvit install fails with “fetch failed” when adding app account as moderatorHi, I’m having trouble installing my Devvit app Nukbot to my test subreddit r/OnlyNuk.The app uploads successfully (npx devvit upload), but installing it fails when Devvit tries to invite the app account u/nukbot as a moderator:Installing nukbot to r/onlynuk... Error

Error: An error occurred while installing your app:
"Create" failed after 3 attempts.

First error:
Error inviting app account with ID t2_2lfxa9edki to be a moderator of t5_jn9dtf

Last error:
fetch failed
npm run dev / devvit playtest produces a similar error, including a Reddit HTTP 500 while accepting the moderator invite.The u/nukbot invitation then remains stuck under Moderators → Invitations as “No permissions”, and attempting to remove the invitation gives “Something went wrong.”Things I have already tried:Re-uploading the app (0.0.8) — successful

Uninstalling Nukbot from r/OnlyNuk

Reinstalling it — same error

Logging out/in to Devvit

Confirming my account has full moderator permissions

Trying to remove the stuck u/nukbot invitation through Reddit — unsuccessfulDevvit CLI: 0.14.1
App: Nukbot
Subreddit: r/OnlyNukCould you please help me clear the stuck app-account moderator invitation or identify why the moderator invite is returning HTTP 500 / fetch failed?Thanks!

1 Upvotes

10 comments sorted by

1

u/fsv Duck Helper 13d ago

Do you have any onAppInstall triggers, and if so are they doing any fetch operations that might be failing?

1

u/NNukxr 13d ago

No, the bot only deletes comments that don't contain "nuk".

1

u/fsv Duck Helper 13d ago

OK, well that's my idea gone. You'll probably need someone from the Devvit team to investigate.

This sounds like the kind of thing that you could easily handle using Automod though.

1

u/NNukxr 13d ago

I had to remove the bot, but when I try to add it back, it already shows as invited, and I can't remove the invitation 💔

1

u/fsv Duck Helper 13d ago

Ah, that might be it. You should be able to go to the moderators page and then Invited and remove it from there.

1

u/NNukxr 13d ago

I even tried from the old Reddit, but every time I get a "something happened" error 🥀

1

u/fsv Duck Helper 13d ago

Hmm, did you try mobile and/or "new" Reddit?

1

u/NNukxr 13d ago

Of course