Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switchover to main branch does not work on authenticated sites #2300

Closed
trieloff opened this issue Jan 19, 2024 · 1 comment
Closed

Switchover to main branch does not work on authenticated sites #2300

trieloff opened this issue Jan 19, 2024 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@trieloff
Copy link
Contributor

Hi, I'm getting a 404 when spinning up my local instance. This is happening when I'm on a local github branch that hasn't been push up to remote. Previously when it was working, I'd get a message that said it was unable to verify the feature branch and was falling back to main:

warn: Unable to verify methomas-aa-sandbox branch on https://methomas-aa-sandbox--bacom--adobecom.hlx.page/fstab.yaml (401). Fallback to main branch.

Now, it's not falling back to main, and it's trying to get content from the feature branch:

warn: Unable to verify methomas-aa-sandbox branch via https://methomas-aa-sandbox--bacom--adobecom.hlx.page/fstab.yaml for authenticated sites.
info: Starting AEM dev server v16.1.5
info: Local AEM dev server up and running: http://localhost:3000/
info: Enabled reverse proxy to https://methomas-aa-sandbox--bacom--adobecom.hlx.page
opening default browser: http://localhost:3000/
warn: [0] Proxy GET request to https://methomas-aa-sandbox--bacom--adobecom.hlx.page/: 404 (text/html; charset=utf-8)

Also, it seems like this might only be an issue on authenticated sites because a different unauthenticated site was working fine.

For now, I reverted to aem-cli v16.0.2 where it's working. Do you know what's going on here?

From Megan on Discord: https://discord.com/channels/1131492224371277874/1144495462255185971/1197696823561834568

@trieloff trieloff added bug Something isn't working wontfix This will not be worked on labels Jan 19, 2024
@trieloff
Copy link
Contributor Author

we removed the fallback. because it was wrong for authenticated sites to fallback to main.
as a workaround you can use —url to specify the main branch

via @tripodsan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant