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

500 : Internal Server Error #47

Open
marcovangoethem opened this issue Mar 6, 2020 · 0 comments
Open

500 : Internal Server Error #47

marcovangoethem opened this issue Mar 6, 2020 · 0 comments

Comments

@marcovangoethem
Copy link

I installed cite2c on windows 10 but get a 500 error on the site http://localhost:8888/cite2c/zotero_oauth while pressing the cite button. I have restart.

After the startup of my notebook I get:
[W 13:44:33.614 NotebookApp] Could not find Zotero citation styles directory.

After pressing the Cite button I get the following messages/calllstack:

[I 13:44:33.976 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 13:45:33.182 NotebookApp] Kernel started: f7f86268-89ed-410f-8ec2-6dc4334f3b27
[W 13:45:33.413 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200306134433 (::1) 15.04ms referer=http://localhost:8888/notebooks/Emmissivity.ipynb
[I 13:45:34.486 NotebookApp] Adapting to protocol v5.1 for kernel f7f86268-89ed-410f-8ec2-6dc4334f3b27
[E 13:45:36.480 NotebookApp] Uncaught exception GET /cite2c/zotero_oauth (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/cite2c/zotero_oauth', version='HTTP/1.1', remote_ip='::1', headers={'Host': 'localhost:8888', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36', 'Sec-Fetch-Dest': 'document', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Referer': 'http://localhost:8888/notebooks/Emmissivity.ipynb', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9', 'Cookie': '_xsrf=2|86ded06b|5f1b66826a8f048a894e912f397c4c4c|1582727828; username-localhost-8889="2|1:0|10:1583410043|23:username-localhost-8889|44:YzE1NjM0ODFlMWY5NGFmMTk0MmM4OGFmOWM3MjZiZTM=|02c2b870066f4fd514e02cec1ad6894fba547a9b038edd2e302f50fd5ac6477c"; username-localhost-8888="2|1:0|10:1583498673|23:username-localhost-8888|44:MGNjMzcwMDk0YjE3NGJiYWIxZjkxY2VmYTkwMjFiZTU=|c85014303590dcf3672fff77560919081cdb2b2207eecead265fdb4a40f9b97f"'})
Traceback (most recent call last):
File "c:\IntelPython3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 441, in wrap_socket
cnx.do_handshake()
File "c:\IntelPython3\lib\site-packages\OpenSSL\SSL.py", line 1806, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "c:\IntelPython3\lib\site-packages\OpenSSL\SSL.py", line 1546, in _raise_ssl_error
_raise_current_error()
File "c:\IntelPython3\lib\site-packages\OpenSSL_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\IntelPython3\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "c:\IntelPython3\lib\site-packages\urllib3\connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "c:\IntelPython3\lib\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "c:\IntelPython3\lib\site-packages\urllib3\connection.py", line 326, in connect
    ssl_context=context)
  File "c:\IntelPython3\lib\site-packages\urllib3\util\ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "c:\IntelPython3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 448, in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\IntelPython3\lib\site-packages\requests\adapters.py", line 440, in send
    timeout=timeout
  File "c:\IntelPython3\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "c:\IntelPython3\lib\site-packages\urllib3\util\retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.zotero.org', port=443): Max retries exceeded with url: /oauth/request?oauth_consumer_key=8cc04771a4e2ef9c9c4d&oauth_nonce=72b39765172c341dcd321f481cc5a0eff75384ff&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1583498736&oauth_version=1.0&oauth_callback=http%3A%2F%2Flocalhost%3A8888%2Fcite2c%2Fzotero_oauth_cb&oauth_signature=iB8TDW6HGpkQB5UHgBgJnwWC%2FXc%3D (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\IntelPython3\lib\site-packages\tornado\web.py", line 1509, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "c:\IntelPython3\lib\site-packages\cite2c\zotero_oauth.py", line 42, in get
    params={'oauth_callback': callback}
  File "c:\IntelPython3\lib\site-packages\rauth\service.py", line 242, in get_request_token
    r = self.get_raw_request_token(method=method, **kwargs)
  File "c:\IntelPython3\lib\site-packages\rauth\service.py", line 215, in get_raw_request_token
    **kwargs)
  File "c:\IntelPython3\lib\site-packages\rauth\session.py", line 210, in request
    return super(OAuth1Session, self).request(method, url, **req_kwargs)
  File "c:\IntelPython3\lib\site-packages\requests\sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "c:\IntelPython3\lib\site-packages\requests\sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "c:\IntelPython3\lib\site-packages\requests\adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.zotero.org', port=443): Max retries exceeded with url: /oauth/request?oauth_consumer_key=8cc04771a4e2ef9c9c4d&oauth_nonce=72b39765172c341dcd321f481cc5a0eff75384ff&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1583498736&oauth_version=1.0&oauth_callback=http%3A%2F%2Flocalhost%3A8888%2Fcite2c%2Fzotero_oauth_cb&oauth_signature=iB8TDW6HGpkQB5UHgBgJnwWC%2FXc%3D (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

[E 13:45:36.505 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36",
"Sec-Fetch-Dest": "document",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-User": "?1",
"Referer": "http://localhost:8888/notebooks/Emmissivity.ipynb",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9",
"Cookie": "_xsrf=2|86ded06b|5f1b66826a8f048a894e912f397c4c4c|1582727828; username-localhost-8889="2|1:0|10:1583410043|23:username-localhost-8889|44:YzE1NjM0ODFlMWY5NGFmMTk0MmM4OGFmOWM3MjZiZTM=|02c2b870066f4fd514e02cec1ad6894fba547a9b038edd2e302f50fd5ac6477c"; username-localhost-8888="2|1:0|10:1583498673|23:username-localhost-8888|44:MGNjMzcwMDk0YjE3NGJiYWIxZjkxY2VmYTkwMjFiZTU=|c85014303590dcf3672fff77560919081cdb2b2207eecead265fdb4a40f9b97f""
}
[E 13:45:36.506 NotebookApp] 500 GET /cite2c/zotero_oauth (::1) 474.68ms referer=http://localhost:8888/notebooks/Emmissivity.ipynb

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

1 participant