You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That can result in a 404 due to the replication lag in GitHub's databases.
We should add an explicit retry to the request which adds the topic. For that we need to use Octokit's retry plugin, then we need to add { request: { retries: 3, retryAfter: 1 } } to the request options. The replication lag should never be longer than 3 seconds.
As we need the retry plugin, we could as well replace @octokit/core with @octoherd/octokit which already has the retry request loaded.
The text was updated successfully, but these errors were encountered:
We currently add the
octoherd-script
topic right after we create the repositorycreate-octoherd-script/lib/create-repository.js
Lines 16 to 34 in 1831fd1
That can result in a 404 due to the replication lag in GitHub's databases.
We should add an explicit retry to the request which adds the topic. For that we need to use Octokit's retry plugin, then we need to add
{ request: { retries: 3, retryAfter: 1 } }
to the request options. The replication lag should never be longer than 3 seconds.As we need the retry plugin, we could as well replace
@octokit/core
with@octoherd/octokit
which already has the retry request loaded.The text was updated successfully, but these errors were encountered: