#Unable to connect to github

1 messages · Page 1 of 1 (latest)

paper pawn
#

When I'm trying to connect Git I'm stuck in the screen as shown in attached screenshot (screenshot 1). Upon reload I'm stuck as shown in screenshot 2. Please help! @celest hamlet @desert roost

celest hamlet
#

there is an issue with your pvt key.

it should look like this: #1155904607306911774 message

narrow fog
#

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.

narrow fog
celest hamlet
#

@narrow fog so sorry and thank you so much, would you like to open an issue and submit a PR for it?

paper pawn
#

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?

paper pawn
#

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}'

celest hamlet
#

nothing

paper pawn
#

Okay. What about the issue that's still persisting? Kindly let me know what should I do?

celest hamlet
#

our team will reply soon.

paper pawn
#

Thanks @celest hamlet 👍. I've DMed you kindly check when possible 😊

severe dagger
#

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.

severe dagger
storm portalBOT
#

GG @severe dagger, you just advanced to level 6!

severe dagger
#

should be similar to this with their respective github username difference in the top text box:

paper pawn
#

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)

severe dagger
#

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"

paper pawn
#

Give me 2 mins sending a screenshot right away!

severe dagger
#

Allright, in the mean time ill try an do a setup from scratch to identify a potential issue.

paper pawn
#

@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!

celest hamlet
#

It should be in one line

paper pawn
#

what about -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----, all in one line?

celest hamlet
#

Yes

severe dagger
#

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.

paper pawn
#

I got everything in single line still facing the same issue! Okay trying to add\n after each line and trying again!

storm portalBOT
#

GG @paper pawn, you just advanced to level 3!

paper pawn
#

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

severe dagger
#

did you restart the services after changing the variables?

paper pawn
#

Yup I did

#

All 4 : docker, server,client,git

severe dagger
#

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?

paper pawn
#

Sure sending a screenshot. @severe dagger please check

severe dagger
#

And than the network part of the tab with the request in it if possible

paper pawn
#

Note: I started all the services just now

severe dagger
#

Iss there anything in the response part of this sub tab

#

not sure if this is the correct network call though

paper pawn
#

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

severe dagger
#

In a smaller windows it might still seem like multiple lines, but it need to be on ONE row

paper pawn
#

Got you!

severe dagger
#

So lets say this is the private key normally:

#

it would become this long string:

#

to be fair, it could be made clearer in the part where you actually have to concatonate the string