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

Publishing extension fails due to HTTP 502/504 error #312

Closed
SchoofsKelvin opened this issue Aug 1, 2021 · 5 comments
Closed

Publishing extension fails due to HTTP 502/504 error #312

SchoofsKelvin opened this issue Aug 1, 2021 · 5 comments

Comments

@SchoofsKelvin
Copy link

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.

@noraj
Copy link

noraj commented Aug 2, 2021

/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

@spoenemann
Copy link
Member

spoenemann commented Aug 2, 2021

@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.

@SchoofsKelvin
Copy link
Author

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?

@noraj
Copy link

noraj commented Aug 2, 2021

@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.

@SchoofsKelvin
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants