Deploy tab not loading in OZ Defender - CORS error and HTTP 502

Hello,

We are deploying our application and proxy with OZ Defender. However something seems to be broken with Defender and I can't go to the Deploy tab or even see the Deploy status on the dashboard, I only see a spinner that spins forever.

This is entirely preventing me from deploying/upgrading with Defender.

:computer: Environment

I'm using the Deploy functionality of OZ Defender on Sepolia to deploy and upgrade my proxy contract. I'm also using Foundry and Safe.

:memo:Details

In the Developer Tools, I see that the https://api.defender.openzeppelin.com/deployments request fails with an HTTP 502 Bad Gateway error, with this CORS error logged on the console:

Access to XMLHttpRequest at 'https://api.defender.openzeppelin.com/deployments' from origin 'https://defender.openzeppelin.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I've tried to log in and log out. I've restarted the browser, and used incognito mode. I've cleared the cache and localStorage. I've disabled the tracker protection in Brave. I've stopped short of deleting and recreating my account.


Thanks,
Asjad

If you want to look in the logs, my Tenant ID is: a804d027-019b-4459-baaf-1ab8861dbbad.

1 Like

Hi @Asjad are you still seeing this issue? We saw a large spike in 502 errors returned to this endpoint on Sept 30th, but we're no longer seeing them now.

Hello @emnul,

Thanks for looking into this.

Yes, the problem is still there. The errors went away because I also stopped using the account since then. I logged back in and I can still see it spinning and giving HTTP 502 errors.

By the way, I noticed that the https://shared-api.defender.openzeppelin.com/contracts/syncAllStates endpoint is also failing with HTTP 502.

Hi @Asjad I wanted to let you know that we've identified the issue with the /deployments endpoint and are working on a fix to unblock you. I will also look into the issue identified with the /contracts/syncAllStates endpoint. You can follow our Changelog for updates on our progress with these fixes.