GithubHelp home page GithubHelp logo

InvalidJSONError! about dettect HOT 7 CLOSED

rabobank-cdc avatar rabobank-cdc commented on July 23, 2024
InvalidJSONError!

from dettect.

Comments (7)

marcusbakker avatar marcusbakker commented on July 23, 2024

I've just run the same command, and all is working. Could you remove the cache directory and try again? If that does not solve the problem, could you share the below?:

  • Python version
  • Installed version of the following Python packages: attackcti, simplejson, taxii2-client

from dettect.

Moofeng avatar Moofeng commented on July 23, 2024

I've just run the same command, and all is working. Could you remove the cache directory and try again? If that does not solve the problem, could you share the below?:

  • Python version
  • Installed version of the following Python packages: attackcti, simplejson, taxii2-client

Python==3.8.4
attackcti==0.3.3
simplejson==3.17.2
taxii2-client==2.2.2

from dettect.

marcusbakker avatar marcusbakker commented on July 23, 2024

The versions all look ok. Are you 100% sure you completely deleted all files within or the whole cache directory? I suspect somehow the JSON data within the cache directory got corrupted.

from dettect.

Moofeng avatar Moofeng commented on July 23, 2024

The versions all look ok. Are you 100% sure you completely deleted all files within or the whole cache directory? I suspect somehow the JSON data within the cache directory got corrupted.

I just checked that there is no cache directory

image

from dettect.

marcusbakker avatar marcusbakker commented on July 23, 2024

I'm no trusting the view of VSCode for 100% as the cache directory is part of the .gitignore file. Despite the output directory is being shown, which is also port of the .gitignore file.

Could you try to search for the directory using a file browser or via a CLI terminal? Delete the cache file if present. If not present, please run dettect.py from a terminal and not VSCode (which should be working, but let us try something different).

from dettect.

Moofeng avatar Moofeng commented on July 23, 2024

It worked!There really is no cache folder.But this time I execute the command from a terminal and not VSCode. That‘s strange.
Thanks a lot!

from dettect.

marcusbakker avatar marcusbakker commented on July 23, 2024

Good to hear it's working now 😄

from dettect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.