Thanks for posting the question. Firstly, apologies for the inconvenience and frustration with this issue. I understand you have been experiencing multiple issues and tried several steps including (uninstalling and reinstalling the swa cli).
To dig deep into this, we may need additional information about your Static WebApp, for this, and follow up offline.
In the interim, you may try these to further isolate the issue:
1. Try running the swa login
command to log in to your Azure account again. This will refresh your Azure session and ensure that the CLI is using the correct credentials.
2. If the issue persists, you may try deleting the .azure directory in your project's root directory. This directory contains cached authentication tokens and other configuration files that the CLI uses. Deleting it will force the CLI to recreate these files with fresh data.
I understand you have checked/logs these already- post that, please review again that the swa-cli.config.json file in your project directory is correctly configured with the correct app_location and api_location paths.
Review the logs for more info:
Troubleshooting deployment and runtime errors
Static WebApps CLI - Troubleshooting
Review the Configuration of the Azure Static Web Apps CLI :
Configuration file || Azure Static Web Apps CLI
Kindly let us know, I'll follow-up with you further.