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

TypeError: None object cannot be quoted #110

Open
sayalimore8722 opened this issue Apr 18, 2018 · 1 comment
Open

TypeError: None object cannot be quoted #110

sayalimore8722 opened this issue Apr 18, 2018 · 1 comment

Comments

@sayalimore8722
Copy link

When i execute the "http_api.py" i am getting the following error.The error is like this

$ python http_api.py
Server started on port: 8080

127.0.0.1 - - [17/Apr/2018 19:09:27] "GET /favicon.ico HTTP/1.1" 200 -

Exception happened during processing of request from ('127.0.0.1', 36776)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 652, in init
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "http_api.py", line 61, in do_GET
open_new_tab(liw.authentication.authorization_url)
File "/home/sayali/lib/python2.7/site-packages/linkedin/linkedin.py", line 101, in authorization_url
qsl = ['%s=%s' % (quote(k), quote(v)) for k, v in qd.items()]
File "/usr/lib/python2.7/urllib.py", line 1286, in quote
raise TypeError('None object cannot be quoted')
TypeError: None object cannot be quoted

What is wrong here?

@SylvainBert
Copy link

SylvainBert commented Apr 24, 2018

Do you change API_KEY and API_SECRET variable in http_api.py?
If yes, did you think to replace environ.get('your key') by your_key?

I think i had this problem and i solve by this changement but i'm not sure.

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