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

I receive an Error processing 405 when execute the tootctl media remove command, #14398

Closed
imkuang opened this issue Jul 27, 2020 · 3 comments · Fixed by #14657
Closed

I receive an Error processing 405 when execute the tootctl media remove command, #14398

imkuang opened this issue Jul 27, 2020 · 3 comments · Fixed by #14657

Comments

@imkuang
Copy link
Contributor

imkuang commented Jul 27, 2020

Expected behaviour

No errors, everything is ok.

Actual behaviour

I got an error: Error processing 405: undefined method `+' for nil:NilClass, as shown in the figure below.

WmsY.png

Steps to reproduce the problem

Specifications

This problem appeared in v3.2.0, and the version of Ruby is 2.6.6p146.
When I use v3.1.5 everything seems to be normal, I don’t know if it’s because of something wrong with my upgrade process or a code bug.

@imkuang
Copy link
Contributor Author

imkuang commented Jul 27, 2020

I think the problem is caused by line 34 of file lib/mastodon/media_cli.rb, so I modified it to media_attachment.file_file_size, and then the problem disappeared.

But the strange thing is that when I modified the file back to the original state again, there are no more errors!
I don't know why this happens, but the code seems to be ok. It may be an occasional error in my operating environment.

I'm sorry to disturb everyone, I will close this issue.
And finally, my English may not be very good, please forgive me if the description is not clear.

@imkuang imkuang closed this as completed Jul 27, 2020
@ldidry
Copy link
Contributor

ldidry commented Aug 3, 2020

Same issue here but had to edit line 34 of lib/mastodon/media_cli.rb, then rollback and the problem disappeared.

@imkuang
Copy link
Contributor Author

imkuang commented Aug 3, 2020

Same issue here but had to edit line 34 of lib/mastodon/media_cli.rb, then rollback and the problem disappeared.

Yeah, I just found out that I made a mistake in the number of lines, and I also modified the line 34. I have just re-edited my reply.

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

Successfully merging a pull request may close this issue.

2 participants