GithubAPI icon indicating copy to clipboard operation
GithubAPI copied to clipboard

RepositoriesAPI parse error

Open skywinder opened this issue 6 years ago • 0 comments

            let authentication = AccessTokenAuthentication(access_token: GITHUB_TOKEN)
            RepositoriesAPI(authentication: authentication).repositories(user: "skywinder", type: .all) { (response, error) in
                if response != nil {
                    print(response!)
                } else {
                    print(error ?? "empty response")
                }
                sema.signal()
            }

gets error:

typeMismatch(Swift.Array<Any>, Swift.DecodingError.Context(codingPath: [], debugDescription: "Expected to decode Array<Any> but found a dictionary instead.", underlyingError: nil))

Line 37

image

skywinder avatar Jan 06 '20 23:01 skywinder