Closed TerranUlm closed 3 years ago
MVP
Another fix: replace all "X-RateLimit-..." strings to lowercase.
So from line 538, would look like this?
if (isset($response->headers['x-ratelimit-reset'])) //update reset time { $db->update_query("settings", array( 'value' => (int)$response->headers['x-ratelimit-reset'] ) , "name = 'drs_setting_ratelimit_reset'"); } if ($response->headers['x-ratelimit-remaining'] == 0) //no more Querries allowed { return false; } } } return true;
}
yes
Hi Terran,
are you sure about the lowecase? https://discord.com/developers/docs/topics/rate-limits
Hi Natter,
Yes, the header returned in $response is all lower case. Might be due to the library for the rest calls. Since I'd changed it the timestamp is updated again.
Fixed in version 0.7.1
done