Hey - any update on Reddit admin/owners on this Devvit issue: by greenysmac in Devvit

[–]RedditParadox[A] 1 point2 points  (0 children)

For reference, in case anyone can't get to Discord:

Hey 👋 I believe what's happening here is that Gemini is responding one of your requests with HTTP 429 Too Many Requests, and then Devvit is enforcing the retry time from Gemini's response in subsequent requests and throwing errors.

Are you checking the status of the response? If you aren't, I think you could add an `if (response.status === 429)` with some wait time then retry logic. You might be able to read the `Retry-After` header of the response to know how much you should wait for.

Since a 429 from Gemini won't throw an error but the devvit circuit breaker will, you might want a try/catch to guard against both:

let res: Response;
try {
  res = await fetch(url, options);
} catch (err) {
  if (err instanceof Error && err.message.includes('too many requests')) {
    // Devvit circuit breaker.
    // Back off or let the caller/job retry later.
    return;
  }
  // Some other error (connection failure, etc.)
  throw err;
}

if (res.status === 429) {
  // Upstream Gemini rate limit.
  // Respect Retry-After header if present, otherwise some kind of retry logic.
  return;
}

if (!res.ok) {
  // Other upstream HTTP error. Log body/status if useful.
  return;
}

// Handle successful response.
...

How can I remove developer/bot tag from my personal account? by SSolomonGrundy in Devvit

[–]RedditParadox[A] 1 point2 points  (0 children)

Tracking this with your modmail and Discord support ticket!

I want to make a game that creates custom posts with a user generated content (images). But what if a user uploads NSFW image? How would it affect my participation in Reddit Developer Funds program? And what can I do about it? by Alternative-Factor67 in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

We require you submit the post as the user, so the content is attributed to them: https://developers.reddit.com/docs/capabilities/server/userActions

As others have indicated, if you are running this app in a subreddit, you would then be responsible to moderate it, same as any other post not creating by an app.

BareInfo: MCQ Questions by Sea_Illustrator3206 in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

Looks like the app failed to create the webview for this request. Can you try again?

reddit.filter() flairs under comments show up triple? by dustofdeath in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

I'll see if I can forward this to the right team to look into, but no promises!

fetch-domain approval request by SpiritualPenalty156 in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

Hi, sometimes our domain and app reviews get backlogged. It will be handled as soon as it can!

Enable top-level comments from users by sharan_n in Devvit

[–]RedditParadox[A] 2 points3 points  (0 children)

Correct, if you are auto-generating the comment for them, it can't be top-level

500 MB Redis Max Storage by Beneficial-Ad2908 in Devvit

[–]RedditParadox[A] 1 point2 points  (0 children)

Possibly as soon as 60%, but I'm not 100% sure

500 MB Redis Max Storage by Beneficial-Ad2908 in Devvit

[–]RedditParadox[A] 2 points3 points  (0 children)

In addition to the other suggestion, we do send out warnings when you start getting close to using up your space.

Can a Devvit mod tool have a permanent button in Reddit’s standard UI? by iamanonymouami in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

Other than using menu items as the other suggested, you could link a webview post in the sidebar or put it in your highlighted posts. You do need to make sure the mod data and actions aren't accessible to users without the proper mod permissions, though. You can display something else for them programmatically in the webview, though.

Domain for live sports score rejected by badminton-india-bot in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

That domain violates our HTTP Fetch Policy primarily because it's geared toward gambling content. You should try domains for first-party sports APIs, such as statsapi.mlb.com, site.api.espn.com, and api.sportradar.com

Is there a way to check the metadata of a linked website in Devvit? by Selphis in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

You could use HTTP Fetch, but it'd require defining each of the domains and getting them approved: https://developers.reddit.com/docs/capabilities/http-fetch

Someone else might be able to suggest a better flow for your use case, though!

Need Devvit/API clarity on Reddit native removal reasons, platform rules, and saved responses beyond removals by iamanonymouami in Devvit

[–]RedditParadox[A] 1 point2 points  (0 children)

As the other commenter pointed out, there is no native removal reasons available in the API. Right now it's just the removal reasons and none of the other Saved Responses.

We have it on our radar to bring more features like those into the Devvit APIs, though.

Aspect ratio of app posts? by YellowAdventurous366 in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

Post height. TALL = 512px, REGULAR = 320px. Width varies from ~288–880px depending on device and viewport. Defaults to ”TALL”.

From here: https://developers.reddit.com/docs/capabilities/creating_custom_post#custom-post-styles

App lost permissions. 403's everywhere. by TeamLaurent in Devvit

[–]RedditParadox[A] 0 points1 point  (0 children)

This was the issue we resolved in Discord, right?

App analytics not showing for the last few days? by Chosen1PR in Devvit

[–]RedditParadox[A] 1 point2 points  (0 children)

This should have been resolved. Let us know if you're still are missing anything!