Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

The use of this field has been deprecated. Received 'datetime' object #16

Open
bkaathi opened this issue Aug 19, 2016 · 0 comments
Open

Comments

@bkaathi
Copy link

bkaathi commented Aug 19, 2016

Getting the error while trying to retrieve data from hailataxii.com with the following stix_import command.

Command:
./stix_import.py -i x.x.x.x -t 11111111-22222-33333-444444-555555555 -x 'hailataxii.com' --taxii_endpoint '/taxii-discovery-service' -c guest.Abuse_ch -r Taxii_IP -y AddressObjectType --taxii_start_time '2016-07-01 12:00:00' --taxii_end_time '2016-08-18 12:00:00'

Error:
/usr/lib/python2.7/site-packages/stix/utils/deprecated.py:48: UserWarning: The use of this field has been deprecated. Received 'datetime' object.
warnings.warn(msg)
Error posting data ["202.9.36.111"]

{"message":"Version (0.1) from header parameter (Version) has been removed and is no longer valid. Please refer to documentation for list of valid versions.","details":{},"description":"","code":41,"http_response":{"message":"The request was well-formed but was unable to be followed due to semantic errors","code":422}}
Traceback (most recent call last):
File "./stix_import.py", line 293, in
main()
File "./stix_import.py", line 266, in main
indicators += process_package_dict( args, stix_package.to_dict() )
File "./stix_import.py", line 163, in process_package_dict
response = urllib2.urlopen(req)
File "/usr/lib64/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 444, in error
return self._call_chain(_args)
File "/usr/lib64/python2.7/urllib2.py", line 378, in _call_chain
result = func(_args)
File "/usr/lib64/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 422: Unprocessable Entity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant