8000 Error getting project commit · Issue #15 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
Error getting project commit #15
Closed
@bluesliverx

Description

@bluesliverx

I get a weird error while trying to retrieve a single project commit. It turns out that the data I'm passing in is actually of the "unicode" type and not a string. I think you need a little better handling for unicode strings. This change on line 526 fixed the issue for me:

-        if data is None or isinstance(data, int) or isinstance(data, str):
+        if data is None or isinstance(data, int) or isinstance(data, str) or isinstance(data, unicode):

Not sure if there is a more general solution for this. I also was able to fix it once I tracked it down by converting my id data to a string before passing it to the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0