educative.io

Authenticating to Github API in terminal is not working

I am stuck at the ‘Create a new Github Project Lesson’. Authenticating to Github API is not working for me.
Anyone facing the sane problem or know the work around for this, please share.

Hello Wasim,

We guess that the error you might be facing is that you are directly copy pasting the
‘curl -u $username:$access_token https://api.github.com/user’ command.
You have to replace the username with your own and the access_token with the access token you copied.

For example, if my user name is Jeny213.
and my access token is: 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

The command will be
'curl -u Jeny213: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 https://api.github.com/user

Hope this helps!

Regards,
Team Educative.

I am already setting the username and token in environment variable. So, I think that is not the issue.
I suspect that the repo which I am cloning is itself not available.

I truly believe every educative user would appreciate if the creation or last updated date of the course was mentioned.

I don’t want to start any course if it is abandoned long time ago.