Skip to content

npm packages list crach #30152

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

Closed
PittyXu opened this issue Mar 28, 2024 · 1 comment
Closed

npm packages list crach #30152

PittyXu opened this issue Mar 28, 2024 · 1 comment
Labels

Comments

@PittyXu
Copy link

PittyXu commented Mar 28, 2024

Description

I forgot to build and run npm publish. Then I opened the package page(/${owner}/-/packages), got the error:

.../context_response.go:86:HTML() [E] Render failed: failed to render template: user/overview/packages, error: template error: builtin(bindata):package/shared/list:23:16 : executing "package/shared/list" at <.FullWebLink>: can't evaluate field FullWebLink in type *packages.PackageDescriptor
----------------------------------------------------------------------
					<a href="{{.FullWebLink}}">{{.Package.Name}}</a>
					           ^
----------------------------------------------------------------------

npm publish log

npm notice 
npm notice 📦  @xx/[email protected]
npm notice === Tarball Contents === 
npm notice 0B    README.md   
npm notice 1.2kB package.json
npm notice === Tarball Details === 
npm notice name:          @xx/xxx                         
npm notice version:       0.0.0                                   
npm notice filename:      xx-xxx-0.0.0.tgz                 
npm notice package size:  611 B                                   
npm notice unpacked size: 1.2 kB                                  
npm notice shasum:        ac41fad07b08f47081026864855aa9e4c7c76
npm notice integrity:     sha512-nazyDBWYD6SJz/cTKvAR13g==
npm notice total files:   2                                       
npm notice 
npm notice Publishing to https://xxx/api/packages/xxx/npm/ with tag latest and default access
npm run publish
npm ERR! Cannot read properties of undefined (reading 'stdin')
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T02_20_05_899Z-debug-0.log
npm ERR! code 1
npm ERR! path /workspace/xx/xxx
npm ERR! command failed
npm ERR! command sh -c npm run publish
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T02_17_41_367Z-debug-0.log

Gitea Version

v1.21.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Docker

How are you running Gitea?

docker 1.21.8-rootless

Database

PostgreSQL

@wxiaoguang
Copy link
Contributor

Ref: #29773

Sorry for the inconvenience, please upgrade to 1.21.10, it has been fixed.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants