openresty/opm

opm upload with github_account as an organization results in 500 error

onyon opened this issue · 1 comments

onyon commented

Attempting to upload a new package where the github_account is set to an organization produces a 500 error. When changed to my personal user account, the upload is successful. This was attempted using the latest openresty/openresty:alpine-fat image.

bash-5.1# opm upload
found license: BSD 2-Clause "Simplified" or "FreeBSD" license.
Package lua-resty-iputils-0.3.0 already installed.
Package lua-resty-string-0.11 already installed.
lua-resty-digitalelement-0.1.0/
lua-resty-digitalelement-0.1.0/README.md
lua-resty-digitalelement-0.1.0/dist.ini
lua-resty-digitalelement-0.1.0/lib/
lua-resty-digitalelement-0.1.0/lib/resty/
lua-resty-digitalelement-0.1.0/lib/resty/digitalelement.lua
HTTP/2 500 
date: Fri, 18 Mar 2022 01:44:19 GMT
content-type: text/html; charset=utf-8
content-length: 174
server: OpenResty Edge
req-id: 00000a0002b83f534f80eea6

<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
; .opmrc
github_account=revcontent
github_token=[redacted]
upload_server=https://opm.openresty.org
download_server=https://opm.openresty.org
; dist.ini
name = lua-resty-digitalelement
abstract = Query DigitalElement database files
version = 0.1.0
author = Richard Onyon (cebollia)
is_original = yes
license = 2bsd
lib_dir = lib
doc_dir = lib
repo_link = https://github.com/revcontent/lua-resty-digitalelement
main_module = lib/resty/digitalelement.lua
requires = luajit, openresty/lua-resty-string >= 0.11, hamishforbes/lua-resty-iputils >=0.3.0

The above error should be due to the fact that the value of github_account you filled in .opmrc is revcontent, but the actual value in GitHub is RevContent, which leads to a judgment error. It is suggested to fill in RevContent in relevant places.