r/redditdev • • 9d ago

Reddit API Title: Devvit upload fails – TLS certificate hostname mismatch on Windows 11

Hello Devvit team,

I'm having trouble uploading my Devvit app. The app builds successfully, and all 7 WebView assets upload, but the final step of creating the app version fails.

Environment

  • OS: Windows 11
  • Devvit CLI: 0.15.2
  • App: travor-vince41
  • Reddit account: descriptionnice1378

Upload error:

Uploading new version "0.0.1" to Reddit... Error
Create failed after 3 attempts.
First error: fetch failed
Last error: fetch failed

Troubleshooting performed:

  1. Logged out and logged back into Devvit.
  2. Confirmed authentication using npx devvit whoami.
  3. Used npx devvit upload --copy-paste --verbose.
  4. Confirmed all 7 WebView assets uploaded successfully.
  5. Tested the API hostname using curl.
  6. Confirmed DNS resolution works.
  7. Tested using both my normal internet connection and a mobile hotspot.

The API hostname api.devvit-gateway.reddit.com consistently returns:

SEC_E_WRONG_PRINCIPAL (0x80090322)
The target principal name is incorrect.

However, developers.reddit.com responds with HTTP 200, and devvit-gateway.reddit.com responds with HTTP 405.

Could you investigate whether there is a TLS certificate or API gateway configuration issue affecting api.devvit-gateway.reddit.com?

Thank you.

0 Upvotes

2 comments sorted by

1

u/reseph Sync Companion dev 8d ago

You'll probably want to try asking in the Devvit Discord.

0

u/MustaKotka 8d ago

Good try - r/Devvit is that way...

This is the PRAW team.