Request failed with status code 429
I'm using the API to manage my projects, I have 32 projects... so in order to manage them, I'm using the GraphQL api, but I'm getting error 429... probably because I've made too many requests.
Is there a way to increase my daily quota a bit?
Thank
26 Replies
Project ID:
N/A
N/A
youre doing more than 1k req/h?
https://docs.railway.app/reference/public-api#rate-limits
I've been working on migrating from Heroku to Railway so probably did a lot of api calls per hour
are you using a terraformer?
either way @fp would be the person to ask
Hmm, we offer 1k/hr which is a lot. Are you on the Pro plan?
Could you explain what you're doing that you need so many requests?
I have 32 projects that I created, and my dashboard is querying information about each project every restart of the dashboard...
so if I do say 6 queries on start up of my dashboard, I get to 200 calls easy...
There's no way to query ALL my projects in one query...
Why not? Isn't that kind of the point of gql?
I can show you my what I'm trying to query, so maybe you can help me do it in less queries
sure
well, I can't do any queries now... π
Can you show me the queries?
yea, a sec.
I need all the Env variables of all the projects
when you say dashboard, do you mean railways dashboard or some dashboard you have made?
I have my own dashboard that I developed using your API
well damn that is impressive
π€
you query all environment variables for all services in all projects on dashboard load?
@aleks how can I fetch all the env variable of all my projects in one call?
yes
may I ask why? railways dashboard only loads them when you open the page that displays them
well, I need only one server's env variable (The server of each project)
not in my dashboard... I use the env variables to configure each project that I host at Railway
and my dashboard shows all my projects, in a nice table with all the configurations
so I need to load all the env variable on start up...
so for each project I run this:
yeah, actually, I'm not sure how to do that
I don't think there is a way to get all variables for all services in a single query
Is there a way to increase the quota ?
just for the next week while I'm working on the dashboard
thats up to fp really, he said 1k /h is a lot so it doesn't seem like it's something you can increase
ok, thanks.