AbdaliDahir/gatsby-portfolio

Github API errors

orangemn6 opened this issue · 36 comments

BTW, this is an amazing site you have here. So, I cloned the site, and added my API key. Then I deployed to netlify. I always get this error, no matter what I try.
Screenshot_2021-02-13-16_913x388

hey @orangemn6

can we start from here

did you added your tokens into netlify environment?
not on .env

smtg like that
Screenshot from 2021-02-13 23-47-33

Screenshot_2021-02-14-11_1178x511
When I tried this, I got a different error.
Screenshot_2021-02-14-22_1192x601

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

Also the token works for my other apps.
Same thing with that one
Screenshot_2021-02-14-40_1163x572

ok

i will check that

there is no problem with code. for the message u get it's already clear. they can't get data from Github.

it's not query problem or smtg like that.

So, i have now project who is working can u give me ur Token to tested on my local.

i just want to make sure that is not Token error.
Screenshot from 2021-02-14 18-59-23

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.
Screenshot from 2021-02-14 19-31-30

its work here as u can see:
Screenshot from 2021-02-14 19-32-08

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

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

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