atom / apm

Atom Package Manager

Home Page:https://atom.io/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publishing new package fails with Application Error

UziTech opened this issue · comments

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

atom-community/terminal#4 (comment)

Looks like the error is from :

apm/src/publish.coffee

Lines 163 to 166 in 231324c

else if response.statusCode isnt 201
message = request.getErrorMessage(response, body)
@logFailure()
callback("Registering package in #{repository} repository failed: #{message}")

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

it works now 🎉