github-community-projects / github-community-projects/safe-settings
Error when modify team
- Dominant language
- JavaScript
- Stars
- 921
- Forks
- 226
- Avg merge
- 18h 3m
- Merged PRs (30d)
- 14
Description
## Problem Description
When I added team to project I get 500 error in webhook.
### What is actually happening
All web hooks that have team payload either adding team to project or updating team.
### What is the expected behavior
success response 200.
### Error output, if available
```
AggregateError:
TypeError: Cannot read properties of undefined (reading 'data')
at ConfigManager.loadYaml (/opt/safe-settings/lib/configManager.js:28:34)
at async syncSettings (/opt/safe-settings/index.js:71:29)
at async Promise.all (index 0)
at async middleware (/opt/safe-settings/node_modules/@octokit/webhooks/dist-node/index.js:355:5)
```
## Context
### Are you using the hosted instance of probot/settings or running your own?
Yes on ec2 with Docker compose.
### If running your own instance, are you using it with github.com or GitHub Enterprise?
github.com
#### Version of probot/settings
Deployed `master-enterprise` branch
Contributor guide
Assessment
This issue has not been assessed yet.