ozgur / python-linkedin

Python interface to the LinkedIn API
http://ozgur.github.com/python-linkedin/
MIT License
893 stars 392 forks source link

Index error in http_api.py #129

Open JoseMMontoro opened 4 years ago

JoseMMontoro commented 4 years ago

Here's the error message:

Exception happened during processing of request from ('127.0.0.1', 57697) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 647, in process_request_thread self.finish_request(request, client_address) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 357, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 646, in __init__ super().__init__(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 717, in __init__ self.handle() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 426, in handle self.handle_one_request() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 414, in handle_one_request method() File "examples/http_api.py", line 51, in do_GET liw.authentication.authorization_code = params_to_d(self.path).get('code') File "examples/http_api.py", line 34, in <lambda> l[0]: l[1] for l in map(lambda j: j.split('='), urlparse(params).query.split('&')) File "examples/http_api.py", line 34, in <dictcomp> l[0]: l[1] for l in map(lambda j: j.split('='), urlparse(params).query.split('&')) IndexError: list index out of range