You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User_lookup apparently isn't liked by line 158 of main.py. I have to copy out that logger.info call to get this to even run. I also haven't gotten it to accept my login yet but I'm still working on that (just says you did not login with the right account)
I also had to add "scope: email" to the provider info because none of the examples suggested that that I could find and google errored about missing it in the request.
I don't really know python so I'm not sure how far I will get though.
Traceback (most recent call last):
File "/usr/local/bin/oauthsub", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/oauthsub/__main__.py", line 158, in main
json.dumps(config_dict, indent=2, sort_keys=True))
File "/usr/lib/python3.4/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib/python3.4/json/encoder.py", line 194, in encode
chunks = list(chunks)
File "/usr/lib/python3.4/json/encoder.py", line 422, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.4/json/encoder.py", line 396, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.4/json/encoder.py", line 429, in _iterencode
o = _default(o)
File "/usr/lib/python3.4/json/encoder.py", line 173, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <function default_user_lookup at 0x760ef540> is not JSON serializable
I have attempted to build a configuration, both with and without defining a user_lookup function in the config file and the result is the same, a TypeError for the user_lookup fu
The text was updated successfully, but these errors were encountered:
Oooh, yeah, I think that the config is written to the console on start. If I recall I dump it as json because I'm lazy. Of course a custom function would fail to serialize. I will fix that!
User_lookup apparently isn't liked by line 158 of main.py. I have to copy out that logger.info call to get this to even run. I also haven't gotten it to accept my login yet but I'm still working on that (just says you did not login with the right account)
I also had to add "scope: email" to the provider info because none of the examples suggested that that I could find and google errored about missing it in the request.
I don't really know python so I'm not sure how far I will get though.
I have attempted to build a configuration, both with and without defining a user_lookup function in the config file and the result is the same, a TypeError for the user_lookup fu
The text was updated successfully, but these errors were encountered: