atom / apm

Atom Package Manager
https://atom.io/packages
MIT License
1.27k stars 294 forks source link

Publishing new package fails with Application Error #923

Closed UziTech closed 3 years ago

UziTech commented 3 years ago

Description

Publishing a new package fails with the error:

Registering package in {repo} repository failed: Application error

Steps to Reproduce

  1. Publish package that doesn't already exist on atom.io

Expected behavior:

publish a new application

Actual behavior:

error

Reproduces how often:

100%

Versions

Atom v1.56.0

Additional Information

https://github.com/atom-community/terminal/issues/4#issuecomment-829518657

UziTech commented 3 years ago

Looks like the error is from :

https://github.com/atom/apm/blob/231324cd9b9c251a790243c9b862767878300e92/src/publish.coffee#L163-L166

is atom.io not returning a status 201 when the package doesn't already exist?

UziTech commented 3 years ago

it works now :tada: