JDBurnZ / pyminfraud

A Python library to interface with MaxMind's MinFraud web service API.
Other
2 stars 7 forks source link

InvalidFieldValue: Expected "ip" datatype for field "ip", encountered "49.2.5.71" instead #16

Open embedded1 opened 7 years ago

embedded1 commented 7 years ago

I'm using the latest version 1.05 and suddenly started getting strange exception when I tried to add an IP address.

/python2.7/site-packages/pyminfraud/init.py", line 75, in add_field raise exceptions.InvalidFieldValue(errors.invalid_field_value.format(datatype=field_rules['datatype'], field_name=field_name, field_value=field_value)) InvalidFieldValue: Expected "ip" datatype for field "ip", encountered "49.2.5.71" instead

Can you tell me what happened? and how can i solve this?