robotevents icon indicating copy to clipboard operation
robotevents copied to clipboard

[BUG] can't get limit info

Open guolin opened this issue 1 year ago • 1 comments

Describe the bug I do a simple test:

`

import fetch from 'cross-fetch';

fetch('https://www.robotevents.com/api/v2/events?per_page=250&season%5B%5D=180&page=3', { headers: { 'Origin': 'https://www.robotevents.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36', 'Authorization': 'Bearer [key], }, }) .then(response => { console.log('x-ratelimit-limit: ', response.headers.get('x-ratelimit-limit')); console.log('x-ratelimit-remaining: ', response.headers.get('x-ratelimit-remaining')); }) .catch(err => console.error(err));

`

but there is no "x-ratelimit-limit:" response.

so the ratelimit feature is not work.

guolin avatar May 01 '24 02:05 guolin