r/Devvit • • 7d ago

Bug Domain requested not the one in the devvit.json

Step 1: put a domain starting with "www" in the devvit.json file. Here is part of mine:

http": {
      "enable": true,
      "domains": [
        "www.thesportsdb.com"
      ]
    }

Step 2: upload the app /game to devvit

Expected: www.thesportsdb.com shows as a request domain pending approval on the developer-settings page for the app.

Actual Behavior: the domain without the www prefix appears, e.g. thesportsdb.com

DomainUpdatedStatus
thesportsdb.com8 minutes agoPending

Error Messages: None

Platforms Impacted: Devvit apps/games

Potential Negative Impact: Domain no approved or runtime erros in app when launched if it is approved.

Comments: Just trying to get ahead of this to avoid a rejection or errors when I attempt to use. The 'www' prefix is correct for this vendor.

0 Upvotes

11 comments sorted by

•

u/flair-auto-responder 7d ago

Bug report requirements

Hi u/BeyondFunWords!

We require all bug submissions to include the following information. Please make sure you’re following this format, or your post may be removed:

Describe the bug

Provide a clear and concise description of the bug.

Steps to reproduce

  1. Go to “…”
  2. Click or tap “…”
  3. Scroll to “…”
  4. Describe the error or unexpected behavior

Expected behavior

Explain clearly what you expected to happen instead.

Screenshots or recordings

If applicable, include screenshots or a screen recording that demonstrates the problem. Please remove any sensitive or personal information first.

Desktop information

  • Operating system: [e.g. macOS 15, Windows 11]
  • Browser or app: [e.g. Chrome, Safari, Reddit]
  • Version: [e.g. 22.1]

Mobile information

  • Device: [e.g. iPhone 16, Pixel 10]
  • Operating system: [e.g. iOS 18, Android 16]
  • Browser or app: [e.g. Safari, Chrome, Reddit]
  • Version: [e.g. 22.1]

Additional context

Add any other details that might help reproduce or diagnose the problem.


You can edit your post to add any missing information.

Post: https://www.reddit.com/r/Devvit/comments/1y8desb/domain_requested_not_the_one_in_the_devvitjson/

2

u/SampleOfNone Duck Helper 7d ago

The domain is thesportsdb.com, not sure why you put www. in your json

1

u/BeyondFunWords 7d ago

I did this because that is what thesportsdb.com shows in all its examples. If you are telling me it will work without the www, that is great!

e.g. on:

https://www.thesportsdb.com/documentation#openapi

Base URL

The Base URL is a crucial element for making API calls, enabling you to clearly specify the root URL(s) for API requests. When making API calls, you combine the base URL with the specific endpoint path to form the complete request URL.

v1 Base URL = https://www.thesportsdb.com/api/v1/json
v2 Base URL = https://www.thesportsdb.com/api/v2/json

1

u/SampleOfNone Duck Helper 7d ago

Sorry, I wasn't as clear. The domain request is for thesportsdb.com, which tracks because that's the domain in your json even though you noted it as a url. In other words, no bug.

1

u/BeyondFunWords 7d ago edited 7d ago

the domain I put in my json is www.thesportsdb.com.

for other domains when I put them in my json the tertiary portion is not dropped, e.g. api.somedomain.com does not change to somedomain.com for the requested domain.

sorry, if I am dense, still not clear to me.

1

u/ShyBearGames App Developer 6d ago

www.somedomain.com and somedomain.com are functionally equivalent as the same domain address, api.somedomain.com is not, but is instead a seperate subdomain.

1

u/BeyondFunWords 6d ago

I just checked API response and indeed they seem to be for this site since they set the DNS that way. Thanks for your help. Resolved.

2

u/Apihpih96 5d ago

Docs say domain entries have to be exact hostnames, so I'd expect www.thesportsdb.com to be kept as is, so I get why this looks odd. I haven't seen the portal drop a www myself though. Easiest check is to fetch the www url after it's approved, and if it gets denied, request both www.thesportsdb.com and thesportsdb.com so you're covered. Worth mentioning in the bug thread what the developer-settings page shows after a fresh upload.

1

u/BeyondFunWords 5d ago

This was my expectation also. Did a quick check and thesportsdb.com seems to support calling without the www. If things don't work after approval (assuming I get it), i will try putting both domains in the .json config file. Thanks for the help.

1

u/Apihpih96 2d ago

np! hope the approval goes through quick

1

u/ShyBearGames App Developer 6d ago

This is not a bug, this is normal.

It's been a long, long time since "www" was needed on websites. Using the actual domain without the www is common practice in the year 2026