Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

NPM publish issue



  • Hi

    We have issue with NPM publish new package.
    When publishing from npm (npm publish) returns 500 error, but using upload file from site package added.

    Product: ProGet
    Version: 4.4.0



  • In order to diagnose this, it'll be important to identify the precice URL that is being requested (you can use Fiddler for this), and then the precice error message that is being output (this is also logged under Admin > Errors).



  • We have such log

    REQUEST
    

    PUT /npm/npm/@example%2fcookies HTTP/1.1
    accept-encoding: gzip
    version: 3.10.8
    accept: application/json
    referer: publish
    npm-session: 6539b86126efb1b0
    user-agent: npm/3.10.8 node/v0.12.2 win32 ia32
    host: example.com
    authorization: (it's valid)
    content-type: application/json
    content-length: 4661
    Connection: keep-alive

    {
    "_id" : "@example/cookies",
    "name" : "@example/cookies",
    "description" : "Cookies with credentials",
    "dist-tags" : {
    "latest" : "0.0.2"
    },
    "versions" : {
    "0.0.2" : {
    "name" : "@example/cookies",
    "version" : "0.0.2",
    "description" : "Cookies with credentials",
    "main" : "bundles/cookies.umd.js",
    "module" : "index.js",
    "typings" : "index.d.ts",
    "repository" : {
    "type" : "git",
    "url" : "http://example.com/tfs/example/_git/example.Angular"
    },
    "keywords" : ["angular", "cookies"],
    "author" : {
    "name" : "Example"
    },
    "license" : "ISC",
    "dependencies" : {
    "@angular/core" : "2.0.1",
    "@angular/http" : "2.0.1",
    "@angular/platform-browser" : "2.0.1",
    "zone.js" : "0.6.25",
    "rxjs" : "5.0.0-beta.12"
    },
    "devDependencies" : {
    "typescript" : "2.0.3",
    "rollup" : "0.36.1",
    "uglifyjs" : "2.4.10"
    },
    "readme" : "Hello world",
    "readmeFilename" : "README.md",
    "_id" : "@example/cookies@0.0.2",
    "scripts" : {},
    "_shasum" : "5e153bd99e37caf0e43cf76fdf4b45a5f154cb82",
    "_from" : ".",
    "_npmVersion" : "3.10.8",
    "_nodeVersion" : "0.12.2",
    "_npmUser" : {
    "name" : "d.example",
    "email" : "dima@example.com"
    },
    "maintainers" : [{
    "name" : "d.example",
    "email" : "dima@example.com"
    }
    ],
    "dist" : {
    "shasum" : "5e153bd99e37caf0e43cf76fdf4b45a5f154cb82",
    "tarball" : "http://example.com/npm/npm/@example/cookies/-/@example/cookies-0.0.2.tgz"
    }
    }
    },
    "readme" : "Hello world",
    "maintainers" : [{
    "name" : "d.example",
    "email" : "dima@example.com"
    }
    ],
    "_attachments" : {
    "@example/cookies-0.0.2.tgz" : {
    "content_type" : "application/octet-stream",
    "data" : "H4sIAAAAAAAAC+1b/2/buhHvzwH6P7Aa4EiDosh2bA/2lFRxiqx4zevWodiAJDBkiU70Kkt+ktzGc/y/746kvlqx+14S563TAY0l8nh3PPJ4H1LszLK/WDf0cMZ/tV+iwH/1xKTrerfbJfgLVP5ttjo98qrZ6vU6Lb3T6XVf6c223kT+pzakiuZRbIVgymPllDv3P0LLPUIk35pSqU+kt9Y8DOzbiEaHdhB8cWkkqVj/lYaRG/jIomu61uKlDo3s0J3FombIW5BvbnxL7JA61I9dyxMippbLuMZz3/Ey+dp86sCcEzyBM/eYIa7v0Lu0PF7MXP8myiocLRZVIZ0FkRsH4QJqsS+cnQm5cWPGBEXz0MOS2zie9Q8P40mkpT3V7GCKJYdm2vcRtMxeNdO/mXtWKIGoFVP6hS6+BaGDBl1y+ZZgEeoS58HbNWthzePbIEQTUrHcfs+1qR8xc9//c5j4dUahm76NItJevRU6wHMh42/BSDQTjWktdlHqP1A586x4EoTTg3EYfItoWGb8T+DjCsDHuau1OklFeMdLO8CtH4xpbGnNVuYQh349qzQah4JPksTidioy8Lz5jKtqdzMb5jeeO1lwdS3tSGvqEiGsarW32nvpcPnhSKz7h5/emWcX77Sp8ww6Nq//kAHa6frfPdLbsP43e91Wvf7vgv5GPS8gsJx5zzHyNf3RKYn/JOM+h45t8d/L8F+3e3QE8d9q9pp1/O+C6N0sCGPyZzIJgynZ1w6j0OaTYX/weu/w8E8kCuahTS+sGYKwz58+GMlU0abW7KXNr+mRVI7/5xjULf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1YSaj2NVP0UmeOVGq6b5M3taCP5z88I7q7xNt2EnelXcil5Jgyt/Qwa4KqYAxn7lv81ve658kRR+WzK48svJIClD8mgs9n182yf4BhnHhj1expTb4/HC1ZW/qu8TFmh9//d4vFemLfhP76zhv3ZLr9f/ndD37/9e2tKanoOqzn+eejO/bf/XXY//Tru+/7ET2tH9/wWgmcXpb/gfAA8sQ3X2fmIq/v+fp8/9SNvyf7u7dv57VN//2g1t/v9/L21dTTXVVFNNz0X/BfjD39oASgAA",
    "length" : 2436
    }
    }
    }

    RESPONCE
    HTTP/1.1 500 Internal Server Error
    Cache-Control: private
    Content-Length: 57
    Content-Type: application/json; charset=utf-8
    Server: Microsoft-IIS/8.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Thu, 06 Oct 2016 08:31:36 GMT

    {
    "error" : "InvalidDataException",
    "reason" : "Invalid json."
    }



  • Looks like reinstall helped.
    Thank you!


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation