stablehorde,
@stablehorde@sigmoid.social avatar

@thegradient @mastohost has the image upload been silently rate limited? I'm attempting to upload images for my @stablehorde_generator bot, the first few went through and the rest are stuck uploading.

mastohost,
@mastohost@mastodon.social avatar

@stablehorde @thegradient The are no rate limits on my end. The only rate limits applied on Mastodon servers hosted on Masto.host are the ones hardcoded on the Mastodon code that every Mastodon server has if there are no changes to the code.

stablehorde,
@stablehorde@sigmoid.social avatar

@mastohost @thegradient Looks like indeed being rate-limited on my account. I attempted this on the bot account via the mastodon frontend, and got this message.

Is this something we can tweak per user?

stablehorde,
@stablehorde@sigmoid.social avatar

@mastohost @thegradient https://docs.joinmastodon.org/api/rate-limits/#uploading-media

I don't know if this is a new feature for mastodon 4.2.0, but it breaks bot services like @stablehorde_generator which are popular all over the #fediverse.

I really hope there's a way to tweak this.

mastohost,
@mastohost@mastodon.social avatar

@stablehorde @thegradient Rate limits are per user/IP, have nothing to do with the server. Also, they are hardcoded by Mastodon, not me. I don't do any rate limits on my end. So, they are only triggered by the actions of the user/IP, things like mass deletions, scrolling lots of pages very fast, etc.

mastohost,
@mastohost@mastodon.social avatar

@stablehorde @thegradient I have seen that happen with people that have multiple tabs opened and even an app on the users phone (not being used) that was doing requests while they were on the computer accessing Mastodon, the combination of both actions simultaneously triggered the rate limit. You should see if that is the case in your end. Either that or some strange edge case usage you are doing.

stablehorde,
@stablehorde@sigmoid.social avatar

@mastohost @thegradient I know, I'm not blaming you. The link I posted is saying
POST /api/v1/media can be called 30 times within 30 minutes.

I don't have a particularly strange use-case, just an GenerativeAI bot that anyone can use via mastodon mentions. It's not difficult to hit 30+ images in 30 mins when everyone wants to use such a service.
If this can't be tweaked by sigmoid, it might mean that I have to move the bot to my own server or significantly limit how much people can play with it.

thegradient,
@thegradient@sigmoid.social avatar

@stablehorde Sorry to see this has impacted you. For now it'd be optimal to implement a queue for posting, it seems - it'd work to post once per 1 minute at most, perhaps.

stablehorde,
@stablehorde@sigmoid.social avatar

@thegradient I've already rate limited things, no worries

mastohost,
@mastohost@mastodon.social avatar

@stablehorde @thegradient Sorry about that. I don't do Mastodon code changes on my infrastructure, that is how I manage to automate upgrades, maintenance, etc.

I understand your use case but also understand why Mastodon limits it, as someone with nefarious intentions could bring a server down by hitting that endpoint repeatedly. Still, it's something you could bring with the Mastodon development team to see if they could implement a way for admins to increase limits on a specific account.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines