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

CookieJar cannot be Marshaled #31

Open
jondavid-schober-sp opened this issue Nov 20, 2020 · 0 comments · May be fixed by #32
Open

CookieJar cannot be Marshaled #31

jondavid-schober-sp opened this issue Nov 20, 2020 · 0 comments · May be fixed by #32

Comments

@jondavid-schober-sp
Copy link

Because the cookie jar uses a Monitor, it cannot be marshaled.

 [3] pry(main)> Marshal.dump(HTTP::CookieJar.new)
      TypeError: no _dump_data is defined for class Monitor
      from (pry):3:in `dump'
 [4] pry(main)>

I filed a bug with the ruby regarding the error for Marshaling Monitor. They expressed that this is intended behavior and Monitor cannot be properly Marshaled, which means that cookie-jar should probably handle this error
https://bugs.ruby-lang.org/issues/17334

@jondavidschober jondavidschober linked a pull request Nov 20, 2020 that will close this issue
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.

1 participant