Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weixinrui opened this issue May 15, 2024 · 2 comments

Comments

@weixinrui
Copy link

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.

@Langenfeld
Copy link
Owner

Did you add some wrapper code to get diffs of something? I added your pull request, but am missing code that actually uses this functionality.

@weixinrui
Copy link
Author

I used the functionality in my own code, not in the wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants