These are chat archives for fossasia/open-event-server

Apr 2018
Bhavesh Anand
Apr 29 2018 05:59 UTC


Content-Type: application/json


  "email": "",
  "password": "password"
@schedutron Let us know if it works now ?
Saurav Tiwary
Apr 29 2018 06:02 UTC
@schedutron It complains about the wrong credentials because you are hitting the wrong endpoint.
You are trying to register a user from /auth/session which is meant for sending access token
Nabarun Pal
Apr 29 2018 06:37 UTC

Hi everybody, I am new here. I am trying to set up the stack for open-event-server using Docker. However, I am getting error while creating the tables. Below is the stacktrace:

root@47f6e77bc792:/open_event# python db stamp head
/usr/local/lib/python2.7/site-packages/psycopg2/ UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <>.
/usr/local/lib/python2.7/site-packages/ UserWarning: Could not any envfile.
  warnings.warn('Could not any envfile.')
Traceback (most recent call last):
  File "", line 96, in <module>
  File "/usr/local/lib/python2.7/site-packages/flask_script/", line 417, in run
    result = self.handle(argv[0], argv[1:])
  File "/usr/local/lib/python2.7/site-packages/flask_script/", line 386, in handle
    res = handle(*args, **config)
  File "/usr/local/lib/python2.7/site-packages/flask_script/", line 215, in __call__
    with app.test_request_context():
  File "/usr/local/lib/python2.7/site-packages/flask/", line 390, in __enter__
  File "/usr/local/lib/python2.7/site-packages/flask/", line 332, in push
    self.session =
  File "/usr/local/lib/python2.7/site-packages/flask/", line 912, in open_session
    return self.session_interface.open_session(self, request)
  File "/usr/local/lib/python2.7/site-packages/flask/", line 324, in open_session
    s = self.get_signing_serializer(app)
  File "/usr/local/lib/python2.7/site-packages/flask/", line 321, in get_signing_serializer
  File "/usr/local/lib/python2.7/site-packages/", line 519, in __init__
    self.is_text_serializer = is_text_serializer(serializer)
  File "/usr/local/lib/python2.7/site-packages/", line 69, in is_text_serializer
    return isinstance(serializer.dumps({}), text_type)
  File "/usr/local/lib/python2.7/site-packages/flask/", line 85, in dumps
    return json.dumps(_tag(value), separators=(',', ':'))
  File "/usr/local/lib/python2.7/site-packages/flask/json/", line 177, in dumps
  File "/usr/local/lib/python2.7/site-packages/flask/json/", line 98, in _dump_arg_defaults
    bp.json_encoder if bp and bp.json_encoder
AttributeError: 'Blueprint' object has no attribute 'json_encoder'

Did anybody else encounter this issue?

Ricky Ng-Adam
Apr 29 2018 09:04 UTC
I managed to get pass that error by modifying venv/lib/python2.7/site-packages/flask/json/ ...but looks like there's a missing dependency (and flask doesn't handle it very well)
Screen Shot 2018-04-29 at 5.04.36 PM.png
Mayank Vaidya
Apr 29 2018 09:05 UTC
@bhaveshAn @simarsingh24 Were you able to solve the kubernetes issue? I am facing the same problem
Apr 29 2018 09:29 UTC
@mayank8318 not till yet! Please update on this group if anybody finds any solution
Mayank Vaidya
Apr 29 2018 09:30 UTC
Saurabh Chaturvedi
Apr 29 2018 21:14 UTC
When hitting the /v1/users endpoint with the data as { "email": "", "password": "password" }, I get the following error:
{"description":"Request does not contain an access token","error":"Authorization Required","status_code":401}
Same is the case when I pass the detailed user data (given as example in the docs) at the v1/users endpoint.