py-gitea icon indicating copy to clipboard operation
py-gitea copied to clipboard

[BUG]: return errors when using requests_get() for /repos/{owner}/{repo}/pulls/{index}.{difftype}

Open weixinrui opened this issue 9 months ago • 2 comments

When using requests_get() method to request /repos/{owner}/{repo}/pulls/{index}.{difftype}, the method raises JSONDecodeError("Expecting value", s, err.value) from None exception. I think the cause is that the response body of this Gitea API returns text file rather than a dict.

weixinrui avatar May 15 '24 14:05 weixinrui