
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@grammyjs/auto-retry
Advanced tools
Check out the official documentation for this grammY plugin.
An API transformer function let's you modify outgoing HTTP requests on the fly.
This grammY plugin can automatically detect if an API requests fails with a retry_after
value.
It will then intercept the error, wait the specified period of time, and then retry the request.
import { autoRetry } from '@grammyjs/auto-retry'
// Install the plugin
bot.api.config.use(autoRetry())
You may pass an options object that specifies a maximum number of retries (maxRetryAttempts
, default: 3), or a threshold for a maximal time to wait (maxDelaySeconds
, default: 1 hour).
Other errors will be passed on, so the request will fail.
autoRetry({
maxRetryAttempts: 1,
maxDelaySeconds: 5,
})
You can use retryOnInternalServerErrors
to automatically retry all other internal server errors by Telegram (status code >= 500).
FAQs
grammY API transformer function to retry requests
The npm package @grammyjs/auto-retry receives a total of 1,947 weekly downloads. As such, @grammyjs/auto-retry popularity was classified as popular.
We found that @grammyjs/auto-retry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.