In Amazon Fraud Detector, I have created the following variables:
Variable name | Data type | Variable type | Source |
---|
address_line_one | String | SHIPPING_ADDRESS_L1 | Event |
address_line_two | String | SHIPPING_ADDRESS_L2 | Event |
card_auth_code | String | AUTH_CODE | Event |
card_brand | String | CARD_BRAND | Event |
card_cvv_result | String | CVV_RESULT | Event |
card_expiry_month | String | CARD_EXPIRY_MONTH | Event |
card_expiry_year | String | CARD_EXPIRY_YEAR | Event |
card_last_four | String | CARD_LAST4 | Event |
channel | String | CHANNEL | Event |
city | String | SHIPPING_CITY | Event |
country | String | SHIPPING_COUNTRY | Event |
currency | String | CURRENCY_CODE | Event |
email_address | String | EMAIL_ADDRESS | Event |
ip_address | String | IP_ADDRESS | Event |
name | String | SHIPPING_NAME | Event |
order_id | String | ORDER_ID | Event |
payment_type | String | PAYMENT_TYPE | Event |
phone_number | String | SHIPPING_PHONE | Event |
state | String | SHIPPING_STATE | Event |
total_amount | Float | PRICE | Event |
transaction_status | String | TRANSACTION_STATUS | Event |
user_agent | String | USERAGENT | Event |
zip | String | SHIPPING_ZIP | Event |
I then try to create an Event that uses those variables. It doesn't matter if I import from a CSV file on an S3 bucket, or if I select them manually, I get the following error every time: "Unable to complete your request due to an unexpected error. Please try again."
Inspecting the request, I see:
POST https://frauddetector.us-east-1.amazonaws.com/ 500
message: "Unable to complete your request due to an unexpected error. Please try again."
retryAfterSeconds: 0
__type: "InternalServerException"
I have narrowed it down to the following variables. When they are removed, the Event is successfully created:
Variable name | Data type | Variable type | Source |
---|
channel | String | CHANNEL | Event |
transaction_status | String | TRANSACTION_STATUS | Event |
card_brand | String | CARD_BRAND | Event |
card_cvv_result | String | CVV_RESULT | Event |
card_expiry_month | String | CARD_EXPIRY_MONTH | Event |
card_expiry_year | String | CARD_EXPIRY_YEAR | Event |
card_last_four | String | CARD_LAST4 | Event |
Even though I can proceed with my model and detector without these variables, I would like them for better fraud detection.
To be clear, I have tried:
- creating the variables manually, and via importing a CSV file through "Events".
- multiple regions and S3 buckets
- multiple browsers
- multiple devices (in different countries!)
This certainly seems like an AWS issue rather than an issue with my home setup.
Has anyone encountered this before or would have any clue why this might be happening?