Problem in Replit ModelFarm Error 500

I have a hacker pro plan, yesterday I used the Vertix AI API, but today I am always getting Error 500, please advise!

1 Like

Hey, @MohamedSalama35 welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

1 Like

here it is @NateDhaliwal :

and that’s the error message appear while trying to connect to the API

Traceback (most recent call last):
  File "", line 5, in <module>
    response = model.complete(["Write a tweet about the meaning of life: "], temperature=0.2)
  File "/home/runner/API-for-traffivresearch/.pythonlibs/lib/python3.10/site-packages/replit/ai/modelfarm/", line 51, in complete
  File "/home/runner/API-for-traffivresearch/.pythonlibs/lib/python3.10/site-packages/replit/ai/modelfarm/", line 57, in _check_response
    raise InvalidResponseException(rjson["detail"]) Rate limit hit.
1 Like

I can’t reproduce that. That seems to be a private repl, so only staff can see it.
I assume what happened is that there was some server issue (500) and then you constantly retried running the code so you hit the rate limit (which should be 429).
As for the rate limit, moving to a new repl might work


It says that you’re getting rate limited.
I’m assuming this isn’t the first time you’ve ran the Repl, and it’s because you’re calling the API way too much.

If not, then :thinking:.

1 Like

yes, I used the API many times, but there was no mention of rate limits in the docs or the blog post, where can find that, and is that rate limit for each day or month?
@UMARismyname @Spcfork @NateDhaliwal

1 Like

It’s common for platforms to not disclose the rate limit algorithms, to prevent us exploiting vulnerabilities
If you run in Shell

curl -D -

and it gets you a rate limit, it might give you more info about the timeout

1 Like

thanks, its working now, i belive its a daily limit

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.