Github API errors
orangemn6 opened this issue · 36 comments
hey @orangemn6
can we start from here
did you added your tokens into netlify environment?
not on .env
can i see what did u selected when u generated the github token??
and if u can try to test it in ur local first just to be sure that the token u have is working well.
ur problem is just with github token
for the token, I selected everything
for the token, I selected everything
can u try with this token : and take screenshot for me
12b290453aa318d056f0e57316fc0651a9d4dbd9
i removed The TOKEN it will not work for u now
ok
i will check that
ok. My token is 330aa38cb6eae7064c26c798d72ea483def5dc1c
ok
it's working for me as u can see.
i get error on query at first but its different to what u get
it was related to "name" inside viewer query i removed from query and its work.
that is just because of the different about our repositories and what we get from it.
do u have the same error in ur local?? or u passed directly to deployment
I didn't run it locally, not enough storage to install all the deps. So how can I fix this problem?
do u have skype
we need to pass to chat
add me or contact me via email to see what u have there abdali.dahir@gmail.com
and because it's not issue related to code
i will close this.
u can start to contact me.
we will try to fix your deployment prblms
k. I got it to work, but only by removing the "name" line
BTW kindof offtopic, but is there an easy CMS/script for making blog posts?
@AbdaliDahir do you use matrix/discord?
Also, I changed the README and now the site gives errors again
gatsby can be easy i think that u already have idea about how its work.
for CMS maybe wordpress can be good for you but u know u will need domain host smtg like that if u don't want to go with the free version.
and the readme file has no impact to site
can i see your project repository
i already checked and i can't found it
sure. My repo is https://github.com/orangemn6/gatsby-portfolio
ok i see it
don't put ur Token inside ".env.development" and push it to github repo
because github automatically will remove ur token and it will not work again
so delete the line? or just comment it out?
keep the .env empty and add your tokens to netlify environment
like i show you on image before
k
so delete the line? or just comment it out?
just remove token from .env and generate another one to added to ur netlify environment
ah makes sense
by the way u can select just "public_repo" and "read:packages" when u try to generate token that all what u need
ok. will try now
YAS it worked!
Ok that is good
🥳🥳🥳🥳🥳🥳
if u need smtg u welcome at any time
ok. Thank you for the help!
Is there a way for me to add blog posts?
yeah of course go to src/data/blog
every post is folder
u can start create ur blogs like that "keep the same structure "
the posts are using markdown .md files
same thing with portfolio
ah sick.
Will it work if I have just a file for each post? or do I need a folder?
maybe with some customization. i didn't check that :)
and i don't see a lot of different between both.
folder will contain also images etc ... to keep things separate maximum.
ok. I will try to look through the code and figure it out