Skip to content
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

Github Connection not Working #3851

Closed
5 tasks done
julien-tamade opened this issue Dec 12, 2023 · 7 comments
Closed
5 tasks done

Github Connection not Working #3851

julien-tamade opened this issue Dec 12, 2023 · 7 comments
Assignees
Labels
archived This issue has been locked. git-providers question Further information is requested

Comments

@julien-tamade
Copy link

julien-tamade commented Dec 12, 2023

Before opening, please confirm:

  • I have checked to see if my question is addressed in the FAQ.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

App Id

d37sqsirhqa81j

AWS Region

us-east-2

Amplify Hosting feature

Git providers

Frontend framework

React

Next.js version

N.A

Next.js router

N/A

Describe the bug

I recently transferred my git repo to an organization. Afterward the Amplify Console still says it's connected and there is no option to connect to a different repo. I used the CLI tool
aws amplify update-app --app-id [APP ID] --repository [REPO] --access-token [ACCESS TOKEN]
to change the repository connected which seemed to work. Afterward however it shows no repo url in the console. See "source repository" below.

Screenshot 2023-12-11 at 5 11 35 PM

when I go to connect to github using the new Github App. it says it connected successfully, however when trying to connect a branch it gives me no options

Screenshot 2023-12-11 at 5 07 58 PM

please help me

when I try to redeploy the existing branches that were setup i get this error

2023-12-12T03:09:35.378Z [INFO]: Git SSH Key acquired
2023-12-12T03:09:35.497Z [INFO]: # Cloning repository: {{my new accurate git url}}
2023-12-12T03:09:35.955Z [INFO]: Agent pid 157
2023-12-12T03:09:35.956Z [INFO]: Enter passphrase for /root/.ssh/git_rsa:
2023-12-12T03:09:35.956Z [ERROR]: !!! CustomerError: Unable to clone repository due to error code: 1
2023-12-12T03:09:35.956Z [INFO]: # Starting environment caching...
2023-12-12T03:09:35.956Z [INFO]: # Environment caching completed
Terminating logging...

Expected behavior

I should be able to select a branch to connect after the Github App has been authorized

Reproduction steps

  1. Create an amplify project
  2. transfer the project's git repo using the cli
  3. try to reconnect

Build Settings

No response

Log output

# Put your logs below this line


Additional information

No response

@Jay2113
Copy link
Contributor

Jay2113 commented Dec 13, 2023

Hi @julien-tamade 👋 , thanks for reaching out.

While running the update-app command, it seems that you have set the --repository attribute to [email protected]:tamade-flowly/flowly-web-portal.git which is an incorrect format and it should rather be as follows: https://github.com/tamade-flowly/flowly-web-portal.

You can either re-run the command with the updated repository attribute and then retry or our recommendation would be to create a new Amplify app and connect this repository to it.

@Jay2113 Jay2113 self-assigned this Dec 13, 2023
@Jay2113 Jay2113 added question Further information is requested git-providers response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed pending-triage labels Dec 13, 2023
@julien-tamade
Copy link
Author

julien-tamade commented Dec 13, 2023

Hi @Jay2113 thank you for your response.

When I run with the https url I get the following error:

Error parsing parameter '--repository': Unable to retrieve https://github.com/tamade-flowly/flowly-web-portal: received non 200 status code of 404

I'm hesitant to make a new amplify project because this project has my whole backend linked to my native ios and android apps as well

I see some others here were having similar issue with no solution posted.

@julien-tamade
Copy link
Author

Yesterday I had tried using the github url without the github.com/tamade-flowly/flowly-web-portal without the https:// and it succeeded

but when I tried to redeploy one of the branches the build logs failed even earlier

2023-12-13T00:56:05.148Z [ERROR]: !!! Internal error
2023-12-13T00:56:05.218Z [INFO]: # Starting environment caching...
2023-12-13T00:56:05.651Z [INFO]: # Environment caching completed
Terminating logging...

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 13, 2023
@mauerbac
Copy link
Member

@julien-tamade - did the comments in this GitHub issue help? #288 (comment)

@mauerbac
Copy link
Member

Closing as we havent heard back

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Jun 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. git-providers question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants