Skip to content

Error: invalid type: null, expected a string at line 1 column 482010 #301

Description

@piegamesde

🐛 Bug description

Serde deserialization fails while listing all pull requests. This is very likely a wrong type in the Pull struct, but I haven't managed to find out which one.

🤔 Expected Behavior

No error

👟 Steps to reproduce

Either: Try to iterate all pull requests of https://github.com/nixos/nixpkgs

Or: Try to deserialize the following response with hubcaps: https://gist.github.com/piegamesde/ae3918a06d7f454f5793a2c7faa94cad

You might get a reproducing with the following request too:

2021-10-29 12:36:47,265 DEBUG [hubcaps] Request: RequestBuilder { method: GET, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.github.com")), port: None, path: "/repositories/4542716/pulls", query: Some("direction=desc&sort=updated&state=open&page=61"), fragment: None }, headers: {"user-agent": "codeowner-rs/0.1.0", "accept": "application/vnd.github.v3+json", "authorization": "…"} }
2021-10-29 12:36:48,428 DEBUG [reqwest::async_impl::client] response '200 OK' for https://api.github.com/repositories/4542716/pulls?direction=desc&sort=updated&state=open&page=61

Or simply with curl https://api.github.com/repositories/4542716/pulls?direction=desc&sort=updated&state=open&page=61

🌍 Your environment

hubcaps version: two commits ahead of master

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions