R
Railwayβ€’13mo ago
Gizmor

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
Percy
Percyβ€’13mo ago
Project ID: N/A
Gizmor
GizmorOPβ€’13mo ago
N/A
Brody
Brodyβ€’13mo ago
Gizmor
GizmorOPβ€’13mo ago
I've been working on migrating from Heroku to Railway so probably did a lot of api calls per hour
Brody
Brodyβ€’13mo ago
are you using a terraformer? either way @fp would be the person to ask
Faraz
Farazβ€’13mo ago
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?
Gizmor
GizmorOPβ€’13mo ago
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...
root
rootβ€’13mo ago
Why not? Isn't that kind of the point of gql?
Gizmor
GizmorOPβ€’13mo ago
I can show you my what I'm trying to query, so maybe you can help me do it in less queries
root
rootβ€’13mo ago
sure
Gizmor
GizmorOPβ€’13mo ago
well, I can't do any queries now... πŸ™‚
root
rootβ€’13mo ago
Can you show me the queries?
Gizmor
GizmorOPβ€’13mo ago
yea, a sec. I need all the Env variables of all the projects
Brody
Brodyβ€’13mo ago
when you say dashboard, do you mean railways dashboard or some dashboard you have made?
Gizmor
GizmorOPβ€’13mo ago
I have my own dashboard that I developed using your API
Brody
Brodyβ€’13mo ago
well damn that is impressive
Gizmor
GizmorOPβ€’13mo ago
πŸ€“
Brody
Brodyβ€’13mo ago
you query all environment variables for all services in all projects on dashboard load?
Gizmor
GizmorOPβ€’13mo ago
@aleks how can I fetch all the env variable of all my projects in one call? yes
Brody
Brodyβ€’13mo ago
may I ask why? railways dashboard only loads them when you open the page that displays them
Gizmor
GizmorOPβ€’13mo ago
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
)
}
query variables($projectId: String!, $environmentId: String!, $serviceId: String) {
variables: variables(
projectId: $projectId
environmentId: $environmentId
serviceId: $serviceId
)
}
root
rootβ€’13mo ago
yeah, actually, I'm not sure how to do that
Brody
Brodyβ€’13mo ago
I don't think there is a way to get all variables for all services in a single query
Gizmor
GizmorOPβ€’13mo ago
Is there a way to increase the quota ? just for the next week while I'm working on the dashboard
Brody
Brodyβ€’13mo ago
thats up to fp really, he said 1k /h is a lot so it doesn't seem like it's something you can increase
Gizmor
GizmorOPβ€’13mo ago
ok, thanks.
Want results from more Discord servers?
Add your server