Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:34:43+00:00 2026-06-01T00:34:43+00:00

I get an EOFError end of file error. when running PrivatePub.publish_to(/dir/file, Some Text) within

  • 0

I get an EOFError end of file error. when running PrivatePub.publish_to(“/dir/file”, “Some Text”) within a rails controller in SSL. Think it has something to do with a uri not parsing. Really have no idea though and can’t some to trace anything down to point me in the right direction.

Anybody else tried running PrivatePub with SSL and run into anything like this or have a solution?

Update: Got something useful in the console maybe. ran:

res = PrivatePub.publish_to(“/orders/160/status_update”, “confirmed”)
got: => #<Net::HTTPOK 200 OK readbody=true>

then ran:

res.body
got: => [{"channel":"/orders/160/status_update","error":"Incorrect token.","successful":false}]

Update:
get this when I run thin serve verbose:
[{“id”:”g”,”channel”:”/meta/connect”,”successful”:false,”error”:”401:3qz34hj7bsqbpr953e8rfa89b:Unknown client”,”advice”:{“reconnect”:”handshake”}}]

Update:
did some things in the nginx config and now I get this: 400 The plain HTTP request was sent to HTTPS port.

Update:
Nothing I do with the server setup solves this. Here’s the errors pertaining to private_pub in the EOFError response:
from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/private_pub-1.0.1/lib/private_pub.rb:34:in publish_message
from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/private_pub-1.0.1/lib/private_pub.rb:28:in publish_to
which are:
line 34 publish_message(message(channel, data))
line 28 url = URI.parse(config[:server])

SOLVED!
Added require ‘net/https’ and require ‘uri’ to lib/private_pub.rb in my fork of the private_pub gem.

Not sure if net/https or uri or both were the ticket but I get no more EOFError and the publish_to method seems to be working as advertised now. Guess I need to requests a merge with the main branch now or inform the original gem owner and let him do as he sees fit.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:34:44+00:00Added an answer on June 1, 2026 at 12:34 am

    Added require ‘net/https’ and require ‘uri’ to lib/private_pub.rb in my fork of the private_pub gem.

    Not sure if net/https or uri or both were the ticket but I get no more EOFError and the publish_to method seems to be working as advertised now. Guess I need to requests a merge with the main branch now or inform the original gem owner and let him do as he sees fit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting an EOFError (End Of File Error) on this code in my
I get this error when I shutdown my war running on Tomcat: [2012-05-03 11:55:36,082]
I get this error when I try to call $func('something') : if(($object instanceof MyObject)
I get the following error Msg 102, Level 15, State 1, Line 11 Incorrect
I get some doubts about behavior of this code : dispatch_async(queue, ^{ sleep(2); NSLog(@step1);
Get picture file relative path from diffrent location. my Address pic file like ~/Uploads/Picture/Commodities/1390/11/TumbDesert.jpg
get a complier error while trying to do float_val=float_val<<1; It gives out a error
Get the following error periodically in an IIS application: Failed to load resources from
Get your newb-shields up, I'm about to sprinkle you with some. I'm trying to
I get the following error when trying to execute a mail merge from access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.