#Unable to connect to github
1 messages · Page 1 of 1 (latest)
there is an issue with your pvt key.
it should look like this: #1155904607306911774 message
Hi, I have the same problem. I can connect with GitHub (see the print screen) but the Amplication does not store the connection. If I press new resource, redirects to the page, to connect with GitHub, If I press the button "connect", popup a new window, asks for my credentials and then it presents on the pop-up window, GitHub my account settings. Amplication does not store the GitHub session.
Ok guys, I found the issue .... on the tutorial "https://docs.amplication.com/running-amplication-platform/connect-server-to-github/", you need to mention that on the GitHub post-installation configuration section, you need to have checked the function "Redirect on update". Otherwise, it does not work on Amplication. I lost a lot of time, to find out it.
@narrow fog so sorry and thank you so much, would you like to open an issue and submit a PR for it?
Hey @narrow fog , @celest hamlet even after checking the function "Redirect on update", I'm still stuck at the same place(as shown in 2nd screenshot). What to do? Create a new github app from scratch again?
Also, in step 11 of the setup, we have to put under {state}? Kindly let me know! @celest hamlet
GITHUB_APP_INSTALLATION_URL='https://github.com/apps/[your-github-username]-amplication-local/installations/new?state={state}'
nothing
Okay. What about the issue that's still persisting? Kindly let me know what should I do?
our team will reply soon.
Thanks @celest hamlet 👍. I've DMed you kindly check when possible 😊
Hey @narrow fog & @paper pawn could you provide a screenshot of the rest of the Github Application settings, just too make sure the rest is aligned with the documentation aswell.
State can stay like that indeed, but make sure that [your-github-username]-amplication-local this part matches the expected github application name
GG @severe dagger, you just advanced to level 6!
should be similar to this with their respective github username difference in the top text box:
Hi @severe dagger , these are my settings
Only difference is the homepage URL port number, where its 3000 for you and 3001 for me(as mentioned in setup doc)
yeah correct, that shouldn't matter!
Could you maybe make a screenshot of the .env.local files on at least the amplication-server side of things & of course partially mask the secrets so they can't be deferred.
This part can be quite error prone: "Click Generate a private key, download, open the generated certificate, add \n at the end of each line except the last line and join all lines to obtain a single line string"
Give me 2 mins sending a screenshot right away!
Allright, in the mean time ill try an do a setup from scratch to identify a potential issue.
@severe dagger The image is blurred but the params set are the ones mentioned in the setup file hope its understandable else let me know will find some other way!
It should be in one line
what about -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----, all in one line?
Yes
so basicly at the end of every new-lin you have now place an \n and then add the new-line after the original and repeat until you added the -----END PRIVATE KEY----- after the original line, after which the \n isnt needed because there is no new line.
I got everything in single line still facing the same issue! Okay trying to add\n after each line and trying again!
GG @paper pawn, you just advanced to level 3!
Did what you suggested @severe dagger still I'm getting
When I click on install for selected repository the popup shows "Please wait..." and stick there. When I check separately on GitHub apps the above screenshot shows the status
did you restart the services after changing the variables?
Can we maybe in the window that said ‘please wait’ & client, see in the console what network calls happend and if we see any errors there?
And than the network part of the tab with the request in it if possible
Iss there anything in the response part of this sub tab
not sure if this is the correct network call though
tried again, there are alot of network calls going on
As u asked to add newline Ive done the following
Continued until END OF PRIVATE KEY
Butt response is empty
What am I missing? @severe dagger
from what i see in this part it seems like the they're still on seperate lines, should be like this:
GITHUB_APP_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n[line2]\n[line3]\n[line-..]\n-----END RSA PRIVATE KEY-----
In a smaller windows it might still seem like multiple lines, but it need to be on ONE row
Got you!