r/Devvit • • 7h 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

5 comments sorted by

•

u/flair-auto-responder 7h 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 6h ago

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

1

u/BeyondFunWords 6h 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 6h 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 5h ago edited 4h 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.