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

Error in Fetch instruments #29

Closed
sakibgit opened this issue Oct 2, 2021 · 1 comment
Closed

Error in Fetch instruments #29

sakibgit opened this issue Oct 2, 2021 · 1 comment

Comments

@sakibgit
Copy link

sakibgit commented Oct 2, 2021

C:\Users\vin\AppData\Local\Microsoft\WindowsApps\python3.9.exe D:/aaa/sdoosa-algo-trade-python-master/src/main.py
Deploy Directory = D:/temp/python-deploy
LogFile Directory = D:/temp/python-deploy/logs

  • Serving Flask app 'main' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
    Deploy Directory = D:/temp/python-deploy
    LogFile Directory = D:/temp/python-deploy/logs
    Exception in thread Thread-8:
    Traceback (most recent call last):
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\threading.py", line 973, in _bootstrap_inner
    self.run()
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\threading.py", line 910, in run
    self._target(*self._args, **self.kwargs)
    File "D:\aaa\sdoosa-algo-trade-python-master\src\core\Algo.py", line 26, in startAlgo
    Instruments.fetchInstruments()
    File "D:\aaa\sdoosa-algo-trade-python-master\src\instruments\Instruments.py", line 75, in fetchInstruments
    instrumentsList = Instruments.loadInstruments()
    File "D:\aaa\sdoosa-algo-trade-python-master\src\instruments\Instruments.py", line 41, in loadInstruments
    instruments = json.loads(isdFile.read())
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json_init
    .py", line 346, in loads
    return _default_decoder.decode(s)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 866003 column 5 (char 20569415)

Process finished with exit code 0

@sakibgit
Copy link
Author

sakibgit commented Oct 2, 2021

issue solved by deleting instruments.json from deploy directory

@sakibgit sakibgit closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant