Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

リモートフォローすると MongoError: E11000 duplicate key error index が発生する #2605

Closed
mei23 opened this issue Sep 4, 2018 · 1 comment
Labels
🐛Bug Unexpected behavior

Comments

@mei23
Copy link
Contributor

mei23 commented Sep 4, 2018

Summary

リモートフォロー(相手が鍵アカウントでない場合)すると

Acceptが返ってきた時に以下のエラーになる

misskey:activitypub Accept: https://リモート/users/ユーザー#accepts/follows/57 +0ms
{ MongoError: E11000 duplicate key error index: misskey.following.$followerId_1_followeeId_1 dup key: 

リモートフォロー(AからBにする場合)は

  1. A => B: Follow Activity 送信
  2. B => A: Accpet 返信

でというフローになるが

フォローのInsertを1でも2でも行っているため

#2604 もあるためリモートフォロー時は最初に(1で)フォロー済み状態にしないほうがよい。

Expected Behavior

Actual Behavior

Steps to Reproduce

Environment

@syuilo
Copy link
Member

syuilo commented Sep 4, 2018

Resolved by @mei23

@syuilo syuilo closed this as completed Sep 4, 2018
nokotaro pushed a commit to nokotaro/misskey that referenced this issue Aug 15, 2021
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.910.0 to 2.911.0.
- [Release notes](https://github.com/aws/aws-sdk-js/releases)
- [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
- [Commits](aws/aws-sdk-js@v2.910.0...v2.911.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Unexpected behavior
Projects
None yet
Development

No branches or pull requests

2 participants