#Request failed with status code 429

38 messages · Page 1 of 1 (latest)

hasty torrent
#

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

west surgeBOT
#

Project ID: N/A

hasty torrent
#

N/A

frigid heart
#

youre doing more than 1k req/h?

hasty torrent
#

I've been working on migrating from Heroku to Railway so probably did a lot of api calls per hour

frigid heart
#

are you using a terraformer?

#

either way @brisk meteor would be the person to ask

brisk meteor
#

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?

hasty torrent
#

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...

stray copper
#

Why not? Isn't that kind of the point of gql?

hasty torrent
#

I can show you my what I'm trying to query, so maybe you can help me do it in less queries

stray copper
#

sure

hasty torrent
#

well, I can't do any queries now... 🙂

stray copper
#

Can you show me the queries?

hasty torrent
#

yea, a sec.

#

I need all the Env variables of all the projects

frigid heart
#

when you say dashboard, do you mean railways dashboard or some dashboard you have made?

hasty torrent
#

I have my own dashboard that I developed using your API

frigid heart
#

well damn that is impressive

hasty torrent
#

🤓

frigid heart
#

you query all environment variables for all services in all projects on dashboard load?

hasty torrent
#

@stray copper how can I fetch all the env variable of all my projects in one call?

#

yes

frigid heart
#

may I ask why? railways dashboard only loads them when you open the page that displays them

hasty torrent
#

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
        )
      }
stray copper
#

yeah, actually, I'm not sure how to do that

frigid heart
#

I don't think there is a way to get all variables for all services in a single query

hasty torrent
#

Is there a way to increase the quota ?

#

just for the next week while I'm working on the dashboard

frigid heart
#

thats up to fp really, he said 1k /h is a lot so it doesn't seem like it's something you can increase