openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Publishing extension fails due to HTTP 502/504 error

Open SchoofsKelvin opened this issue 4 years ago • 5 comments
trafficstars

Trying to publish my extension fails with a Bad Gateway error:

Error: Request for retrieving user profile failed: 502 Bad Gateway: [<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
]
    at IncomingMessage.<anonymous> (C:\Users\Kelvin\AppData\Local\Yarn\Data\global\node_modules\ovsx\lib\registry.js:176:40)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Tried several times, one of the times I got a HTTP 504 instead:

Error: Request for retrieving user profile failed: 504 Gateway Time-out: [<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
]
    at IncomingMessage.<anonymous> (C:\Users\Kelvin\AppData\Local\Yarn\Data\global\node_modules\ovsx\lib\registry.js:173:40)
    at IncomingMessage.emit (events.js:327:22)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Tried both v0.1.0 and v0.2.0 of the ovsx package as well as this GitHub Action on a repository workflow, several times. I've also tried generating a new token, but the error still happens.

Can't seem to actually publish a new version of my extension now, since everything results in a server error.

SchoofsKelvin avatar Aug 01 '21 19:08 SchoofsKelvin

/usr/lib/code/product.json

{
        "quality": "stable",
        "extensionsGallery": {
                "serviceUrl": "https://open-vsx.org/vscode/gallery",
                "itemUrl": "https://open-vsx.org/vscode/item"
        },

In VScode

image

developer tools requests observed when trying to search an extension

image

image

image

noraj avatar Aug 02 '21 14:08 noraj

@noraj https://open-vsx.org/vscode/gallery is a POST endpoint, so you won't see anything with a web browser. But you can open the Network tab in the developer tools of VS Code to see the request / response result.

spoenemann avatar Aug 02 '21 14:08 spoenemann

Tried to publish now again (without changing anything to my setup/command), and it published successfully this time.

I'll leave this issue open since the root cause isn't discovered/fixed yet?

SchoofsKelvin avatar Aug 02 '21 15:08 SchoofsKelvin

@noraj https://open-vsx.org/vscode/gallery is a PUSH endpoint, so you won't see anything with a web browser. But you can open the Network tab in the developer tools of VS Code to see the request / response result.

I edited my message to remove the irrelevant part.

noraj avatar Aug 02 '21 18:08 noraj

@noraj Seems like your issue is rather #306 (it succeeds but is blocked client-side due to CORS) instead of this issue, which is about the server throwing 5XX errors while publishing.

SchoofsKelvin avatar Aug 02 '21 18:08 SchoofsKelvin