Friday, March 22, 2019

if not able to download the Source code from Code Project or any other website.

Hi All ,

Today i got issue from one of the colleague he raise an query he is not able to download the the source code from  the below url
https://www.codeproject.com/Articles/1277140/Simple-Transaction-Microservices-Sample-Architectu

the error is as below :-


this is happens because of

Failed login limit

Authenticating with invalid credentials will return 401 Unauthorized:
curl -i https://api.github.com -u foo:bar
HTTP/1.1 401 Unauthorized
{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3"
} 
After detecting several requests with invalid credentials within a short period, the API will temporarily reject all authentication attempts for that user (including ones with valid credentials) with 403 Forbidden:


Solution :-

when you in my case when you click download link

The url :- https://api.github.com/repos/johnph/simple-transaction/%7Barchive_format%7D%7B/ref%7D

So remove the "/%7Barchive_format%7D%7B/ref%7D" that part from query string
The correct your are as below:-
https://api.github.com/repos/johnph/simple-transaction

when you hit above url on browser you will get .json Response 


In above json i am highlight "clone_url": "https://github.com/johnph/simple-transaction.git",

clone the same :-

Hope it is resolve your issue.

Thank you

Arjun Walmiki

No comments:

Post a Comment