Closed bakert closed 5 years ago
expected string or bytes-like object
Reported on github_tools by logged_out
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.36, 108.162.246.7
Cf-Ray: 445c65e3caa2bcc2-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/4f5b68a
X-Github-Event: pull_request
X-Github-Delivery: 933a5da0-98f7-11e8-9407-2d7bdb33a937
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.36
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25283--------------------------------------------------------------------------------
TypeError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 93, in build_changelog
old = packaging.version.parse(oldversions.get(package))
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 225, in init
match = self._regex.search(version)
expected string or bytes-like object
Reported on github_tools by logged_out
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.36, 162.158.106.116
Cf-Ray: 445c5903f9bc796d-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/4f5b68a
X-Github-Event: pull_request
X-Github-Delivery: 58ed8ce0-98f6-11e8-8924-728c6b8aa5de
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.36
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25071--------------------------------------------------------------------------------
TypeError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 93, in build_changelog
old = packaging.version.parse(oldversions.get(package))
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 225, in init
match = self._regex.search(version)
expected string or bytes-like object
Reported on github_tools by logged_out
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.45, 108.162.246.133
Cf-Ray: 44ada88ffa69bca4-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/fa15ca8
X-Github-Event: pull_request
X-Github-Delivery: 78ea23f0-a0b7-11e8-81b9-89331db1571b
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.45
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25137--------------------------------------------------------------------------------
TypeError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 93, in build_changelog
old = packaging.version.parse(oldversions.get(package))
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 225, in init
match = self._regex.search(version)
list index out of range
Reported on github_tools by logged_out```
--------------------------------------------------------------------------------
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.39, 162.158.106.38
Cf-Ray: 44ce345cb93cbb24-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/681bd17
X-Github-Event: pull_request
X-Github-Delivery: 0e0c58f0-a3d2-11e8-8819-c6e2d3fd1cab
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.39
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25566
--------------------------------------------------------------------------------
IndexError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 91, in build_changelog
newversions[req.name] = req.specs[0][1]
list index out of range
Reported on github_tools by logged_out```
--------------------------------------------------------------------------------
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.253.29, 108.162.246.37
Cf-Ray: 44cdf0ddeec1bb18-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/681bd17
X-Github-Event: pull_request
X-Github-Delivery: 9e351e50-a3cb-11e8-9215-f2542f9f357c
Content-Type: application/json
Cf-Connecting-Ip: 192.30.253.29
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25566
--------------------------------------------------------------------------------
IndexError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 91, in build_changelog
newversions[req.name] = req.specs[0][1]
list index out of range
Reported on github_tools by logged_out```
--------------------------------------------------------------------------------
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.253.29, 162.158.106.38
Cf-Ray: 44cde57a0c95bb24-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/681bd17
X-Github-Event: pull_request
X-Github-Delivery: 882864b0-a3ca-11e8-8521-b92a0a0e4d64
Content-Type: application/json
Cf-Connecting-Ip: 192.30.253.29
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25421
--------------------------------------------------------------------------------
IndexError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 91, in build_changelog
newversions[req.name] = req.specs[0][1]
This is almost certainly the VCS reference to discordpy@rewrite
Without actually looking at the code, I'm going to assume it's because we don't have an == in that line
expected string or bytes-like object
Reported on github_tools by logged_out```
--------------------------------------------------------------------------------
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.45, 108.162.245.168
Cf-Ray: 44f605643a1ebb66-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/36c7b8e
X-Github-Event: pull_request
X-Github-Delivery: 2343aff0-a79e-11e8-983e-076f6dfaf1c3
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.45
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25087
--------------------------------------------------------------------------------
TypeError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 49, in on_pull_request
if data['action'] == 'labeled' or data['action'] == 'unlabeled':
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 93, in build_changelog
old = packaging.version.parse(oldversions.get(package))
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/lib/python3.6/site-packages/packaging/version.py", line 225, in init
match = self._regex.search(version)
This is the code but I'm none the wiser:
for p in patch.changes:
if p[1] is None:
req = Requirement.parse(p[2])
oldversions[req.name] = req.specs[0][1]
elif p[0] is None:
req = Requirement.parse(p[2])
newversions[req.name] = req.specs[0][1]
list index out of range
Reported on github_tools by logged_out```
--------------------------------------------------------------------------------
Request Method: POST
Path: /api/github?
Cookies: {}
Endpoint: /api/github
View Args: {}
Person: logged_out
Referrer: None
Request Data: {}
Host: localhost:5002
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 192.30.252.40, 108.162.246.85
Cf-Ray: 45258e0228d67967-SEA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Accept: /
User-Agent: GitHub-Hookshot/ea6a0a6
X-Github-Event: pull_request
X-Github-Delivery: a0ad8060-ac26-11e8-8ac0-711f0c891321
Content-Type: application/json
Cf-Connecting-Ip: 192.30.252.40
X-Forwarded-Host: gh.pennydreadfulmagic.com
X-Forwarded-Server: gh.pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 25069
--------------------------------------------------------------------------------
IndexError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/discord/.local/lib/python3.6/site-packages/github_webhook/webhook.py", line 73, in _postreceive
hook(data)
File "./github_tools/init.py", line 48, in on_pull_request
webhooks.check_for_changelogs(pr)
File "./github_tools/webhooks.py", line 71, in check_for_changelogs
lines = build_changelog(change)
File "./github_tools/webhooks.py", line 88, in build_changelog
oldversions[req.name] = req.specs[0][1]
30d4d70c adds some defense to prevent bad indexes. We'll see what happens I guess …
Actually 30d4d70c is too complex and doesn't quite work. Added try…except in 7edf7c26 instead.
Resurfaced in PennyDreadfulMTG/perf-reports#42746