Open Jarek-Rolski opened 8 months ago
rAPId api delete protected domain request removes domain but returns error status code and inadequate response message.
url = f"https://rapid.c-af.org/api/protected_domains/{domain}" response = requests.delete( url, headers=headers ) data = json.loads(response.content.decode("utf-8"))
For above code requests response code is 400 and response message is {'details': 'Subject 6hqkf3fqro7v7d8qtlg4nej98v not found in database'}
I tested it twice for existing domain. The message returned was identical. Despite the message domains were deleted.
I found where problem is. Here is created aws_cognito_user_pool_client "user_login", but no permissions in dynamodb are created for him in this file
I can make pull request fixing this issue, but I don't know what permissions this user was intended to have, or can it be deleted?
rAPId api delete protected domain request removes domain but returns error status code and inadequate response message.
For above code requests response code is 400 and response message is {'details': 'Subject 6hqkf3fqro7v7d8qtlg4nej98v not found in database'}
I tested it twice for existing domain. The message returned was identical. Despite the message domains were deleted.