I am trying to create an application using RoR so that I can verify ShopifyAPI. I use a private application that I created through the portal of partner partners.
I tried to create a session using the generated password. The session seems valid.
login_controller:
def index debugger sess = ShopifyAPI::Session.new('a75999989b7715f73ae5273497b9bfcb: 9eb9f578d9fcfd753713e079@mante-hudson7934.myshopify.com ', '9eb9f578d9fcfd753713e0795') sess.valid? session[:shopify] = sess flash[:notice] = "Logged in" redirect_to return_address session[:return_to] = nil end
But when I try to get all the products (products = ShopifyAPI :: Product.find (: all ,: params => {: limit => 10})
As a result, I get a 500 error.
here is the debug trace from me:
1: ShopifyAPI::Base.site = https://a75999989b7715f73ae5273497b9bfcb: 9eb9f578d9fcfd753713e079596d4fbd@mante-hudson7934.myshopify.com /admin/ ~/.rvm/gems/ ruby-1.9.3-p194@rails328 /gems/shopify_app-4.0.0/lib/shopify_app/login_protection.rb:9 ShopifyAPI::Base.clear_session
and in the browser I have an exception: "Connection reset by peer - SSL_connect"
Apparently the problem with my session ...
Is there something I am missing?
thanks
- EDIT -
Actually, I tried to capture products via IRB and as a result I got the same 500 Error: "Connection reset by peer - SSL_connect"
Not sure why I have this error?
Regis
Regis source share