-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Open Source Project section is missing #218
Comments
Users seem to be facing multiple issues related to fetching data from Github (like the CORS issue in #219). Do you wanna look into this @naveen521kk @saadpasta ? |
AFAIK, it raises CORS issue when the access tokens are invalid. So, checking the access tokens would fix the issue. |
same here.... Also the github profile card isn't showing up despite the value being set to true |
That would be because of not having a valid token which would fetch your GitHub data. I've never tested these components with my token locally, I might take a look at this soon if it's still an issue. |
If there is an issue how does this work in https://developerfolio.js.org . Quick questions: Does setting an environment variable named export REACT_APP_GITHUB_TOKEN="GitHub token here" After, that does using |
The issue might be on recent commit because one of the user also contacted me personally.
I tried with 3 different tokens, both methods but nothing worked. So I tried same tokens with masterportfolio (which is similar to this project) and they worked perfectly. |
@FlyingBackdoor can you show us your developerFolio repo. |
@FlyingBackdoor Master Portfolio is using our previous that is converting the token and then using it which is not safe. So we have come up with solution. |
@FlyingBackdoor It works perfectly for me.
$env:REACT_APP_GITHUB_TOKEN = "My GitHub secret access token"
Please try this and check whether this works for you. If this works then it needs to be documented. |
@naveen521kk Yes It worked, fetched profile and repo and render it for a second or two and after everything disappeared. Check below ss with console log |
working on it locally. I will upload it soon.
whenever I followed readme, github revoked my token after deployment but the method @naveen521kk shows somehow worked but it is throwing errors. |
So, Idk of what happened in the webpage. Maybe try a force refresh(CTRL+F5) and try again it may work. Or maybe your extension is malfunctioning. Try the same in a private tab. I think the base64 option was the best. I mean we can ask the user to enter it in base64 format, that Also, I will be making a documentation on what I had done in that comment maybe a Github Wiki Page. |
@naveen521kk can you please check if https://flyingbackdoor.github.io/ working on your end or not. I already tried different browsers, devices and private tabs. |
No, it isn't can you try the same in-development version so that it says what is actually the error? by running Also, did you change any other thing in the code? It works perfectly for me. |
@naveen521kk I don't think so. It was still very confusing. Let's try to solve this. |
In development i got this error:
Tested with completely clean code, only thing changed is git username in portfolio.js I guess this is happening because of different node/npm version, maybe some library used in this project is changed as I am using the most recent versions of everything. For now I am just disabling opensource section. Hope you guys will able fix this. |
@FlyingBackdoor The problem was because of your profile. ON going through your profile I found it. See this. This repo has no content and been kept in profile. So Github can't get what the |
So, now @saadpasta I am working a wiki page for this and I am going to recommend using environment variables instead of |
Finally!! |
I am trying to understand what's the correct way of getting your github profile into the portfolio now? Should we use .env file or use the powershell technique to save the token? Powershell technique works as of now, but building it and deploying it creates a privacy issue with the token exposure on github. |
I am facing problem with Open source project section and github user data, might be related with #101
Issue is present in both development and final build
check the live page (here)
I am getting the below warnings in log
When I deployed for the first time Github revoked my access token even after adding .env file in gitignore. So I used the old method, converting it and directly assigning to variable which worked. But it is still not fetching any details.
Code Preview👇
The text was updated successfully, but these errors were encountered: