502 Request Error - tried the guide

What issue or error are you experiencing?

502 Request Error when opening the local website


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I tried reimporting the website without success


System Details

  • Local Version: Version 9.2.2+6771

  • Operating System (OS) and OS version: macos 15.3.1 (24D70)


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-logs2.zip (824.6 KB)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

If you create a new, blank site and open it up do you get a 502 error @alessiof? Or is this just happening on a site that you pulled/imported?

the site created from scratch works

You might try clicking on Site Shell on your other site, and then using CLI commands to disable plugins or swap themes. It might be that it’s run into a conflict. To start you could run something like, wp plugin deactivate --all

unfortunately nothing changed

Maybe try swapping the theme out as well with a default one?

Did this site come from a host somewhere else or did you build it in Local?

not solved with the theme change. It was originally hosted online, but it was working fine a few days ago.

Are there any major differences between the hosted version and Local version in configuration? As far as WP/PHP/MySQL versions or server type?

As a hail mary, something else you could try is exporting the site and then completely deleting it from Local. Then spinning up a new, blank site and importing the contents manually to see if that will get things working again:

Manually Import a Local Site