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

🐛 FIX: Should sync public package when registryName not exists #303

Merged
merged 1 commit into from
Aug 28, 2022

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Aug 28, 2022

No description provided.

@fengmk2 fengmk2 added the bug Something isn't working label Aug 28, 2022
@fengmk2 fengmk2 requested review from elrrrrrrr and killagu August 28, 2022 14:12
@fengmk2
Copy link
Member Author

fengmk2 commented Aug 28, 2022

这里没有兼容

2022-08-28 21:39:02,288 ERROR 1159966 [-/47.103.6.164/c70e1880-26d6-11ed-881c-7db54b754650/7.369ms PUT /wondermove-web-component/sync?sync_upstream=true&nodeps=true] nodejs.TypeError: Cannot read properties of null (reading 'registryId')
    at PackageSyncController.createSyncTask (/home/admin/application/app/port/controller/PackageSyncController.ts:86:77)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at PackageSyncController.deprecatedCreateSyncTask (/home/admin/application/app/port/controller/PackageSyncController.ts:183:18)
    at Object.<anonymous> (/home/admin/application/node_modules/_@eggjs_tegg-controller-plugin@1.5.1@@eggjs/tegg-controller-plugin/lib/impl/http/HTTPMethodRegister.ts:97:20)
    at AlwaysAuth (/home/admin/application/app/port/middleware/AlwaysAuth.ts:13:3)
    at Tracing (/home/admin/application/app/port/middleware/Tracing.ts:22:3)
    at ErrorHandler (/home/admin/application/app/port/middleware/ErrorHandler.ts:7:5)
    at xframe (/home/admin/application/node_modules/_egg-security@2.11.0@egg-security/lib/middlewares/xframe.js:7:5)
    at xssProtection (/home/admin/application/node_modules/_egg-security@2.11.0@egg-security/lib/middlewares/xssProtection.js:7:5)
    at nosniff (/home/admin/application/node_modules/_egg-security@2.11.0@egg-security/lib/middlewares/nosniff.js:8:5)

感觉后面还是要再改改,应该优先使用 package registryId 查询 registry

Copy link
Contributor

@killagu killagu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fengmk2 fengmk2 merged commit e06c841 into main Aug 28, 2022
@fengmk2 fengmk2 deleted the fix-sync-registryName-not-exists branch August 28, 2022 14:19
@fengmk2
Copy link
Member Author

fengmk2 commented Aug 28, 2022

1.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants