atlantis: Unable to check user permissions: struct field for “__schema” doesn’t exist in any of 1 places to unmarshal
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
- Please do not leave “+1” or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
Atlantis plan and apply comments stopped working after updating to latest image
Reproduction Steps
Deploy with latest image and try to atlantis plan or apply from comments.
Atlantis will have a similar error in logs:
{“level”:“error”,“ts”:“2022-02-28T21:16:21.928Z”,“caller”:“events/command_runner.go:219",“msg”:“Unable to check user permissions: struct field for \“__schema\” doesn’t exist in any of 1 places to unmarshal”,“json”:{},“stacktrace”:“[github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand](http://github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand)\n\[tgithub.com/runatlantis/atlantis/server/events/command_runner.go:219](http://tgithub.com/runatlantis/atlantis/server/events/command_runner.go:219)”}
Logs
Logs
{“level”:“error”,“ts”:“2022-02-28T21:16:21.928Z”,“caller”:“events/command_runner.go:219",“msg”:“Unable to check user permissions: struct field for \“__schema\” doesn’t exist in any of 1 places to unmarshal”,“json”:{},“stacktrace”:“[github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand](http://github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand)\n\[tgithub.com/runatlantis/atlantis/server/events/command_runner.go:219](http://tgithub.com/runatlantis/atlantis/server/events/command_runner.go:219)”}
Environment details
If not already included, please provide the following:
- Atlantis version: latest
- If not running the latest Atlantis version have you tried to reproduce this issue on the latest version: It’s latest
- Atlantis flags: The relevant flags are ATLANTIS_GH_ORG=SomeOrg, ATLANTIS_GH_TEAM_ALLOWLIST=someteam:*, ATLANTIS_GH_APP_ID=someappid
Atlantis server-side config file:
---
repos:
- id: /.*/
allow_custom_workflows: true
allowed_overrides:
- apply_requirements
- workflow
apply_requirements:
- approved
workflow: default
Repo atlantis.yaml file:
# Empty
Any other information you can provide about the environment/deployment
Using terraform-aws-modules/atlantis/aws
Additional Context
We pinned to v0.18.2 and everything works as expected
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 8
- Comments: 27 (21 by maintainers)
Commits related to this issue
- fix: fix unmarshall error in graphql call (#2128) * Fix unmarshall error in GraphQL call #2090 * Add unit tests for GetTeamNamesForUser * Fix lint error — committed to runatlantis/atlantis by raymondchen625 5 years ago
- fix: fix unmarshall error in graphql call (#2128) * Fix unmarshall error in GraphQL call #2090 * Add unit tests for GetTeamNamesForUser * Fix lint error — committed to krrrr38/atlantis by raymondchen625 5 years ago
yes, we needed to change libraries due to a security risk on the previous one, that is why this changed.