-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
.teams().repos().remove()
always fails with EOF error
#504
Comments
I could also see changing the Maybe |
So, I just pushed commits to my PR #503. Those changes do kinda fix this issue, but I don't like the fix since it relies on using what seems to conventionally be a non-public function. I'm trying to keep the change as light-touch as possible so that it won't break anybody's code. I'm still pretty new to the language, though, so I'm probably missing something. I would appreciate feedback. |
It looks like |
Thank you for your issue! I think you just need to use the |
Are there any delete methods for which |
I don't think so, but I don't have an complete reference of GitHub APIs in my head 😄 |
I think the bigger issue here is that we don't have tests or good support for those endpoints. I'm willing to commit to adding tests and troubleshooting if we can hammer out an agreement on what the best approach to a more general fix. |
Here's the CSV file: #506 |
I think we can just make |
Groovy. I’ll add some tests and see how that goes. This seems like a breaking change, somehow?
|
Yes but that's fine. |
Groovy. I'll go in that direction. I should have an updated PR in a week or two. |
There are several APIs which result in the GitHub API which return
204
and have no response body.DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
is one of those.At the moment, the
FromResponse::from_response()
function does not support responses with no body. It looks like this:I have added a test in this draft PR which demonstrates the error.
I think the fix is in that self-same
FromResponse::from_response()
function, right where I added the comment. It seems like you could just check whetherbody.is_empty()
and then return something that conforms to thecrate::Result<Self>
.I've been trying to put together a fix for it, but my Rust is perhaps too weak and I am having a difficult time figuring out exactly what I can return from this function to make it play nice.
If anybody has any thoughts, I'm happy to do the work on a fix here. I already have a test, and I'm going to expand the test once I navigate this issue.
Collaboration is appreciated, thanks.
Solidarity.
The text was updated successfully, but these errors were encountered: