-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
error 500 when clicking npm package #20624
Comments
|
How did you upload npm package and which url you are viewing the package |
npm package was uploaded as described in the gitea docs:
URL we are viewing is:
here package.json:
|
I'm having the same error. Uploaded the package like @init-rz did and visiting the packages page shows error 500 with the same message. Message: template: package/metadata/npm:5:27: executing "package/metadata/npm" at <.PackageDescriptor.Properties>: can't evaluate field Properties in type interface {} Installation: Running gitea 1.17.0 via docker on a ubuntu server |
I was having the same trouble; the revised npm template file in PR #20675 fixes this. |
Description
publish an npm package
in the ui click on the package.
a 500 error is returned.
log output:
2022/08/02 12:02:12 ...s/context/context.go:219:HTML() [D] [62e8f624] Template: package/view
2022/08/02 12:02:12 ...s/context/context.go:232:HTML() [E] [62e8f624] Render failed: template: package/metadata/npm:5:27: executing "package/metadata/npm" at <.PackageDescriptor.Properties>: can't evaluate field Properties in type interface {}
2022/08/02 12:02:12 ...s/context/context.go:219:HTML() [D] [62e8f624] Template: status/500
Gitea Version
1.17.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
2.37.0.windows.1
How are you running Gitea?
downloaded window exe from gitea.io
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: