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

wekan-stats with private board #6

Open
smutel opened this issue Feb 8, 2020 · 1 comment
Open

wekan-stats with private board #6

smutel opened this issue Feb 8, 2020 · 1 comment

Comments

@smutel
Copy link

smutel commented Feb 8, 2020

Hello,

It seams that this script is not working with private board...

In conffig.ini:

[GLOBAL]
application: WekanStats

[WEKAN_JSON]
ops-infra: https://xxxxxx/api/boards/fhQRbBE2Wad8ReAtw/export?authToken=1Bw658FVVA-EzsZd1ceYVSuYAEQjPMeASWoeE4bT-1X

When I launch the script:

INFO:WekanStats.WsMotor:Creating an instance of WsMotor
INFO:WekanStats.WsMotor:Exporting JSON Wekan URL for board "ops-infra" to a class dic : https://xxxxxx/api/boards/fhQRbBE2Wad8ReAtw/export?authToken=1Bw658FVVA-EzsZd1ceYVSuYAEQjPMeASWoeE4bT-1X
ERROR:WekanStats:RunTimeError during instance creation : u'as3xFA88p64P9jkZk'
Traceback (most recent call last):
  File "./get-stats.py", line 193, in <module>
    main()
  File "./get-stats.py", line 63, in main
    raise RuntimeError('Exception during instance creation : ' + str(e))
RuntimeError: Exception during instance creation : u'as3xFA88p64P9jkZk'

What is the issue ?

@yesquines
Copy link

Hello,

I'm have the same problem.

1º I used a similar configuration that smutel and I got the same error

2º I also tried do download the Wekan Json and put on a local webserver using the python module ComplexHTTPServer and changing my config.ini, like this:

[GLOBAL]
application: WekanStats

[WEKAN_JSON]
localboard: http://localhost:8000/board.json

And when I launch the script

INFO:WekanStats.WsMotor:Creating an instance of WsMotor
INFO:WekanStats.WsMotor:Exporting JSON Wekan URL for board "localboard" to a class dic : http://localhost:8000/board.json
ERROR:WekanStats:RunTimeError during instance creation : u'mpfthvwE8fqXu9kPP'
Traceback (most recent call last):
  File "./get-stats.py", line 193, in <module>
    main()
  File "./get-stats.py", line 63, in main
    raise RuntimeError('Exception during instance creation : ' + str(e))
RuntimeError: Exception during instance creation : u'mpfthvwE8fqXu9kPP'

Do someone know how figure out this problem?

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

2 participants