jcabi / jcabi-github

Java Object-Oriented Wrapper of GitHub API, with a fake implementation of the entire GitHub API (for your tests)
https://github.jcabi.com
Other
305 stars 142 forks source link

Fetching user repos #1263

Open dieffrei opened 7 years ago

dieffrei commented 7 years ago

When I tried to fetch repos using ""

for (Repo repo : github.repos().iterate("")){
     System.out.println(repo);              
}

one error was throwed:

ain] INFO com.jcabi.http.request.BaseRequest - #fetch(GET api.github.com /): [200 OK] in 2s
javax.json.JsonException: Cannot read JSON array, found JSON object
    at org.glassfish.json.JsonReaderImpl.readArray(JsonReaderImpl.java:122)
    at com.jcabi.http.response.JsonResponse$VerboseReader.readArray(JsonResponse.java:169)
    at com.jcabi.github.RtValuePagination$Items.fetch(RtValuePagination.java:211)
    at com.jcabi.github.RtValuePagination$Items.hasNext(RtValuePagination.java:185)
    at BitbucketTest.main(BitbucketTest.java:21)
dmarkov commented 7 years ago

@yegor256 take a look at this issue please and dispatch it somehow, see par.21

yegor256 commented 7 years ago

@dieffrei this most likely was due to the temporary down time at GitHub API. Can you try again?