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

Publishing updates fails #43

frosch123 opened this issue Apr 25, 2020 · 0 comments

Publishing updates fails #43

frosch123 opened this issue Apr 25, 2020 · 0 comments


Copy link

@frosch123 frosch123 commented Apr 25, 2020

When uploading an update to an existing package, the front-end makes the same assumption as when editing meta data. "No name" means "name from package".
It looks like the API agrees in the validation step, since it does not complain about missing stuff in the GET /new-package/.

However, .../publish gives 500:

2020-04-25 21:48:46 ERROR Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/", line 458, in _handle
resp = await handler(request)
File "/code/bananas_api/web_routes/", line 194, in new_publish
File "/code/bananas_api/new_upload/", line 232, in publish_session
File "/code/bananas_api/new_upload/", line 112, in create_tarball
tar_path = _safe_name(session["name"]) + "-" + _safe_name(session["version"])
KeyError: 'name'
2020-04-25 21:48:46 INFO [25/Apr/2020:21:48:46 +0000] "POST /new-package/3a6ad88d8398ed157f8e8af1f9c5157c/publish HTTP/1.1" 500 244 "-" "python-requests/2.23.0"

TrueBrain added a commit to TrueBrain/OpenTTD-bananas-api that referenced this issue Apr 26, 2020
@TrueBrain TrueBrain closed this in 79338cb Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant