microsoft/MicrosoftEdge-Extensions

[Add-ons API] Response status: 502 when uploading a package

mflp19 opened this issue · 4 comments

Hi.
I have been following your guide on how to use the add-ons API.

However i keep getting a 502 error status when sending the request for uploading a package.
Below is the response i receive when i try to call the endpoint, the response indicate a server error so i am not sure if i can do anything about it?

I have also attached the body of the response, although it seems to just be one of the standard 5** error messages.

I hope the provided information is useful for you to help me figure out whats wrong 🙌
If you need more information feel free to ask

Response {
  status: 502,
  statusText: 'Bad Gateway',
  headers: Headers {
    'content-length': '1477',
    'content-type': 'text/html',
    'request-context': 'appId=cid-v1:23f44029-850d-47f4-8c9f-200d01ff4866',
    date: 'Fri, 24 May 2024 06:28:20 GMT'
  },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.addons.microsoftedge.microsoft.com/v1/products/<Product ID>/submissions/draft/package'
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>502 - Web server received an invalid response while acting as a gateway or proxy server.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>502 - Web server received an invalid response while acting as a gateway or proxy server.</h2>
  <h3>There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.</h3>
 </fieldset></div>
</div>
</body>
</html>

Should be fixed now.

Hi @mflp19

I'm Pritham Kasi, from Microsoft Edge Extensions team!

Could you please send us an email to ext_dev_support@microsoft.com with all the details along with your Seller ID and Extenion details and we could investigate this issue?

Hi @prithamkasiMSFT

The issue seems to be fixed now as @wsxarcher also mentioned.
So lets just close the issue for now 👍

But i will keep the email at hand and let you know if we ever experience issues in the future

Hi @mflp19

Thank you for letting us know and please reach out to us if you face any blockers in the future.