Azure edge returns 504 not 404 randomly RRS feed

  • Question

  • I have a web page displaying an image from Azure Edge.

    It used to give me 404 error right away but now I'm getting 504 randomly after 30 seconds later, which is preventing the page to display. 404 is expected because there is no file. I'm not using SAS for these image files.

    The same file gives me 404 or 504 randomly...

    Any idea how to get 404 right away rather than getting 504 after 30 seconds?


    Sunday, September 29, 2019 6:25 PM

All replies

  • Update: This only happens with AzureEdge. I changed the URL from ***.azureedge.net to ***.blob.core.windows.net, this issue doesn't happen.
    Sunday, September 29, 2019 10:31 PM
  • Based on the error message I assume the below mentioned cause would let to this error message. (HTTP status code 504)

     A 504 Gateway Timeout response code occurs when a timeout occurs when an HTTP proxy is trying to communicate with another server. In the case of our CDN, a 504 Gateway Timeout response code typically occurs when an edge server is unable to establish communication with a customer origin server.

    For better understanding can you please elaborate more on your issue.  Have you tried to reset the edge?  Can you share me the URL?  Also, kindly do share a screenshot of the issue after concealing any private details. Looking forward to your reply.

    The operation could not be completed within the permitted time.        

    Are you using Azure Storage CDN? If so, Allow access from the CDN to only files from the "content" directory Origin hostname = orwadklar.dk Origin path = /content  Example CDN URL: https://subminfo.azureedge.net/StyleIass/custom.min.css

    Additional information:

    Azure Endpoint Origin settings by specifying your actual web server IP address as the Azure Endpoint "Origin Hostname" and your domain name as the "Origin host header".  You do NOT use your domain name as the "Origin Hostname" as this will resolve Cloudflare IP addresses instead of your actual web server IP address.

    Kindly let us know if the above helps or you need further assistance on this issue. ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Monday, September 30, 2019 8:45 AM
  • Thank you for your reply!

    I haven never reset the edge. Could you provide me the instruction?

    Here is the URL examples. If you load multiple times, you will see random different loading time.



    Here is the error message and time it's taking. (404 is expected here)

    It doesn't have any access restrictions and public access is set to Blob (anonymous read access for blobs only)

    It normally gives me 404 and page renders right away. (I could lazy load but this is not normal behavior)

    For the last few days, the same file is giving me 504 error, which takes 30 seconds to time out. 

    Also, if I don't use CDN (Azure edge server) I don't have the issue. 

    It's the same file.


    Monday, September 30, 2019 7:34 PM