Receive a Git Remote API error when trying to commit to or checkout a file from a repository, or add a new git connection to a Platform Object.
Possible Cause
From time to time the OAuth connection to Github can expire, or need to be reset.
Suggested Solutions
Reset your Git OAuth connection to Platform.
Navigate to https://platform.civisanalytics.com/spa/users/profile and then click the "Git Repos" tab
Then click "Add Repository"
Followed by clicking the link highlighted here to update your OAuth connection to Github
You will be directed to Github to sign in if necessary otherwise your connection should be reset.
If that does not resolve the issue, locate and delete your GitHub Credential in Platform, then re-configure your GitHub access.
- Navigate to https://platform.civisanalytics.com/spa/#/credentials
- Use the type filter to find only Credentials for GitHub
- Click on your GitHub Credential
- Use the Standard Action Menu to delete your Credential
- Follow these instructions to re-configure your Git connection Connect Platform to GitHub/Bitbucket.
Receive a Git Remote API error when trying to checkout some files, other behaviors are normal
Possible Cause
The Github API limits the size of files to be fetched to 1MB if your file is larger than this a 500 error will be returned.
Suggested Solutions
- Refactor your file to meet the 1MB limit
- Clone your repository locally and use the Civis API to patch the Platform Object from the source file.
Cannot see a repo in my organization's GitHub account in Civis Platform profile page
Possible Cause
When a user allows an OAuth application (e.g. Platform) access to their Github, the allowed permissions do not necessarily extend to repositories in that user's organization.
Suggested Solutions
- Have GitHub organization account administrator approve the Platform app for the organization's account and/or remove restrictions within third party application access policy
- Reauthorize Github with platform for user account
- Steps
- Go to your initials on the top right, click on "My Profile"
- click on the "Git Repos" tab
- click "Add Repository" on the top right
- click on "Connect to GitHub" and add your login information to GitHub in Platform
- Authorize the Account
You now should be able to go back into Platform and see the repos you haveaccess to in the drop down.
Comments
0 comments
Please sign in to leave a comment.