Skip to content

Handle error when friends limit (10000) is reached #10

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

Open
Konard opened this issue Dec 21, 2021 · 0 comments
Open

Handle error when friends limit (10000) is reached #10

Konard opened this issue Dec 21, 2021 · 0 comments

Comments

@Konard
Copy link
Owner

Konard commented Dec 21, 2021

{
  "response": [
    200049981,
    455320942
  ],
  "execute_errors": [
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    }
  ]
}

{
  "response": [
    608015282,
    455320942
  ],
  "execute_errors": [
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    },
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    }
  ]
}

{
  "response": [
    608015282,
    455320942
  ],
  "execute_errors": [
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    },
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    }
  ]
}

{
  "response": [
    687688688,
    608015282,
    455320942
  ],
  "execute_errors": [
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    },
    {
      "method": "friends.add",
      "error_code": 1,
      "error_msg": "Unknown error occurred"
    }
  ]
}

This error occurs when friends limit reached.

The script should try to:

  1. Cancel all friends requests.
  2. Delete inactive friends.

When the current number of friends is below 10000 the script can start to accept friends requests again.

This script should work better if it uses a storable state that contains the current number of friends.

For example, there is no need to accept friend requests when the limit of friends is reached.

@Konard Konard changed the title Unknown error occurred Handle error when friends limit (10000) is reached Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant