Skip to content

RepositoriesAPI parse error #11

@skywinder

Description

@skywinder
            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, Swift.DecodingError.Context(codingPath: [], debugDescription: "Expected to decode Array but found a dictionary instead.", underlyingError: nil))

Line 37

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions