I've been debugging my old project for hours because it stopped working all of a sudden (CORS error and permission error at the same time, along with the said issue in the title). I'm really enjoying all this change lol Well, at least I resolved the last issue, so I thought I'd share this one in hope that whomever that got into this.
Ever since this new IDE got launched, the deployment UI has changed a little bit. If you go to the right top Deploy > Manage deployments, it shows the two separate list of deployments, one being Active and another for Archived ones. This isn't particularly new, but the oddity is that.. the deployment from each two editors, old and new, will be handled separately. What it means is that.. the "Active" deployment list may show two separate deployments
So, if you have deployed web app both on the old and the new editor, it will list both of them within the Active deployment lists, not the one, unless you archive either of them (which I'll explain later). In my case, the one from the old editor will be shown at the bottom, and it always gets precedence even if it weren't the latest deployment. This confused me into thinking that my new deployment were ignored and locked up. It is being listed as a new deployment, however the old deployment from the old editor is just inhibiting that from being published.
This isn't too much of a problem by itself, as you can edit one out by archiving, to have only one deployment listed in Active deployment. You can archive the Active deployment from the "Manage deployments" menu, so I archived the old deployment. Now I only see single deployment which is the newest one. You can do this by going to Deploy > Manage deployments, select the old deployment in the "Active" list, and then it shows the archive icon at the right top of the window. Click that and it asks for confirmation.
But the real annoyance here is that, the Deployment ID differs depending on which editor you used to deploy the code. This means that, for now at least, if you wanted to use the old Deployment ID, you shouldn't use the new editor to publish it, because it makes the old url unusable anymore.
For now, I'll use old editor to deploy codes because it's too messy and troublesome to change Deployment ID for all the WebApps I made to interact with this project.
---
I like the new IDE though. I think it's much more useful and have only a few complaints (one of them being it missing the feature to delete archived deployments - but I can always go back to the old editor to do this so I'm fine for now.) But, man this was so counter-intuitive. I reported this as an issue, so hopefully this will get organized better.
Hope this saves someone's time! Cheers!