MicrosoftDocs / edge-developer

Developer documentation for Edge.
https://learn.microsoft.com/microsoft-edge/developer/
Creative Commons Attribution 4.0 International
376 stars 503 forks source link

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

Closed mflp19 closed 1 month ago

mflp19 commented 1 month ago

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>
captainbrosset commented 1 month ago

Thanks for reaching out and sorry that you're experiencing this. However, could you please submit your issue again to our other repository which is specific to add-ons support? This one, here, is focused on maintaining the docs only. Here is the place where you should reach out: https://github.com/microsoft/MicrosoftEdge-Extensions

Thanks for your understanding.