facebook authentication: crash on reading "args["access_token"][-1]"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-tornado (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
tornado.
On Ubuntu 17.04, tornado version 4.4.2-1ubuntu1
The problem seems to be at line 983 of /usr/lib/
Replacing urlparse.parse_qs with escape.json_decode seems to fix the problem:
- args = urlparse.
- session = {
- "access_token": args["access_
- "expires": args.get("expires")
- }
+ args = escape.
+ session = {
+ "access_token": args["access_
+ "expires": args.get("expires")
+ }
Here's the traceback:
Traceback (most recent call last):
File "/usr/lib/
result = yield result
File "/usr/lib/
value = future.result()
File "/usr/lib/
raise_
File "/usr/lib/
yielded = self.gen.
File "webservice.py", line 72, in get
user = yield self.get_
File "/usr/lib/
value = future.result()
File "/usr/lib/
raise_
File "/usr/lib/
ret = fn(*args, **kwargs)
File "/usr/lib/
"access_token": args["access_
KeyError: 'access_token'
description: | updated |
description: | updated |
description: | updated |
description: | updated |