You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm assuming the Pathname object implements the write method, so this error is mistakenly thrown. Casting the Pathname object to a string fixes the issue, but this was rather hard to debug since the error message was about using an in-memory buffer.
Similar behavior occurs for upload! -- passing a Pathname object as the 'remote' argument raises an exception when the channel is closed. Converting the 'remote' to a string does not raise an exception -- in both cases the upload itself succeeds.
I'm assuming the
Pathname
object implements thewrite
method, so this error is mistakenly thrown. Casting thePathname
object to a string fixes the issue, but this was rather hard to debug since the error message was about using an in-memory buffer.To reproduce,
To fix,
What if we automatically perform a
to_s
onPathname
objects to catch this?The text was updated successfully, but these errors were encountered: