-
Notifications
You must be signed in to change notification settings - Fork 35
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
Internal error: 'branchDataProvider.getResourceltem' threw exception Cannot read properties of null (reading 'contextValuesToAdd') #872
Comments
Are you still able to view these apps on the portal as normal? This error indicates that we aren't able to fetch data about this resource due to lack of permissions. |
Hello, Yes, all works in portal as normal and I can see all other resources in the azure extension except static web apps for all subscriptions. If the issue is with permissions, how can I check I have the correct ones? Thanks |
Which method did you use to deploy to your static web app? Did you deploy with GitHub actions or use the static web apps cli, etc? |
The cli and the Deploy Azure Static Web App 0.* (preview) task in devops releases |
I suspect this error will show up for apps that aren't connected to GitHub or Azure DevOps. The extension lacks support at the moment for apps that have been deployed with other means (SWA CLI, or the DevOps task). Just to help confirm this, is this error showing for all of your apps? Do you have Static Web Apps that are connected to GitHub/DevOps repositories? If yes, are those ones showing the same error? If you only have apps that have been deployed to with the CLI or the DevOps preview task, that's fine. We need to add support for those apps in the extension. It's been on our todo list for a while. In the meantime we could certainly provide a better error message. |
I do not have apps deployed directly via GitHub/devops. I deploy them with pipelines. Ok that makes sense. Thanks |
Hello, was this ever resolved? I had access to .yml config files for a static web app via the Azure extension in VS Code for years, but now it's broken. If this is now broken for foreseeable future, is there another way to read and write files that are git-ignored for static web apps? |
How are you deploying @BP-StepanO-RUS ? |
Github Actions @motm32 |
Could you go into the Azure Portal and show us the property JSON for this static web site? Something that we expect to be there is |
Do you mean this file? @nturinski
|
Looking at this payload, this looks like it's a function or web app. Is this issue in the right repository? |
The original issue was reported for a "Static Web Apps". Mine is the same issue for something called "App Services". I'm not sure what the differences are, but apparently both experience the same. |
We have made a release recently that may have fixed the issue or at least improved the error messaging. Could you please let us know if you're still encountering the above issue? Thanks! |
The error message is now |
There's also |
Do you happen to have a containerized function app, by chance? In the same location of the app that is throwing this error? |
No, I don't think so |
is there any update on this? getting this with |
Hello,
I am no longer able to see details for static web apps and getting this error instead:
Internal error: 'branchDataProvider.getResourceltem' threw exception Cannot read properties of null (reading 'contextValuesToAdd')
The same error shows on all static web apps in all subscriptions.
The text was updated successfully, but these errors were encountered: