async rateLimitedCallApi<T>(url: string, schema: Type<T>): Promise<T> {
await this.rate_limiter.acquire();
const response = await fetch(url, this.request_data);
if (!response.ok) {
throw Error(`Invalid request: ${response}`)
}
const parsedResponse = schema(await response.json());
async rateLimitedCallApi<T>(url: string, schema: Type<T>): Promise<T> {
await this.rate_limiter.acquire();
const response = await fetch(url, this.request_data);
if (!response.ok) {
throw Error(`Invalid request: ${response}`)
}
const parsedResponse = schema(await response.json());