#Request failed with status code 429
38 messages · Page 1 of 1 (latest)
Project ID: N/A
N/A
I've been working on migrating from Heroku to Railway so probably did a lot of api calls per hour
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?
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?
@stray copper 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:
query variables($projectId: String!, $environmentId: String!, $serviceId: String) {
variables: variables(
projectId: $projectId
environmentId: $environmentId
serviceId: $serviceId
)
}
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