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

opm upload with github_account as an organization results in 500 error #91

Open
onyon opened this issue Mar 18, 2022 · 1 comment
Open

Comments

@onyon
Copy link

onyon commented Mar 18, 2022

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
@xlibor
Copy link
Contributor

xlibor commented Mar 19, 2022

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.

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