Worker fetch failing with several Microsoft domains

fetch requests to several Microsoft domains are failing with response status code 526.

Here’s a test script:

export default {
  async fetch(request, env) {
    const pn = new URL(request.url).pathname;
    if (pn == '/test2') {
      /* Should get 200 */
      return fetch('https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/.well-known/openid-configuration')
    }
    else if (pn == '/test3') {
      /* Should get 401 */
      return fetch('https://graph.microsoft.com/blah/e91fdf9a-82b0-4ef7-b31c-c14451a9970f')
    }
    else {
      return new Response(null, {status: 404})
    }
  }
}

Works as expected in the quick edit console, but you’ll get 526 responses with the actual deployment.

Hi there,

I believe this issue was resolved, could you please try again? Thanks.

Yes, it was resolved by the time I tested again about 12 hours ago.

1 Like