Skip to content
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

[infoblox] Connector fails to start with 'datetime.datetime' has no attribute 'datetime' #2333

Closed
gileri opened this issue Jul 11, 2024 · 0 comments · Fixed by #2336
Closed
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Milestone

Comments

@gileri
Copy link
Member

gileri commented Jul 11, 2024

Description

Environment

  1. OS (where OpenCTI server runs): N/A
  2. OpenCTI version: connectors@69eec7941c95ce6ff93cc8024549f53eab635ee9
  3. OpenCTI client: python
  4. Other environment details: official Docker image at sha256:0e6880ee49a5f68c9a0857fe717c72a90eb9c5adecc05

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Add the connector

Expected Output

No error

Actual Output

{"timestamp": "2024-07-11T07:56:12.131264Z", "level": "ERROR", "name": "INFOBLOX", "message": "type object 'datetime.datetime' has no attribute 'datetime'", "exc_info": "Traceback (most recent call last):\n  File \"/opt/opencti-connector-infoblox/infoblox.py\", line 267, in process_data\n    now = datetime.datetime.fromtimestamp(timestamp, datetime.timezone.utc)\n          ^^^^^^^^^^^^^^^^^\nAttributeError: type object 'datetime.datetime' has no attribute 'datetime'"}

Additional information

Looks like from datetime import datetime should be import datetime

Screenshots (optional)

@gileri gileri added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Jul 11, 2024
@Lhorus6 Lhorus6 self-assigned this Jul 11, 2024
@Lhorus6 Lhorus6 mentioned this issue Jul 11, 2024
4 tasks
@Lhorus6 Lhorus6 linked a pull request Jul 11, 2024 that will close this issue
4 tasks
@SamuelHassine SamuelHassine added this to the Release 6.2.5 milestone Jul 11, 2024
@SamuelHassine SamuelHassine added solved use to identify issue that has been solved (must be linked to the solving PR) and removed needs triage use to identify issue needing triage from Filigran Product team labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants