2014-04-01 102 views
0

這是我的應用程序:https://dialective-shopify.herokuapp.com500內部服務器錯誤嘗試安裝Shopify應用

把它安裝在development模式沒有問題。

把它安裝在production模式但只有如果我讀了一些產品從開發店:

@products = ShopifyAPI::Product.find(:all, :params => {:limit => 10}) 

如果我嘗試讀取50種產品:

@products = ShopifyAPI::Product.find(:all, :params => {:limit => 50}) 

,並重新安裝應用程序在開發店從零開始,然後我得到一個500服務器錯誤:

A static HTML page can contain a simple dependency free script to set the top bar to a 500 server error. This page can be found in 'public/500.html'.

在以下GET請求:

enter image description here

與頭:

enter image description here

這種情況給予授權安裝應用程序,以及用於測試後付款。

如果我多次按F5刷新頁面,最終安裝過程成功完成並且該應用程序被加載!

我甚至不知道從哪裏開始尋找,因爲錯誤在服務器端(大概是在Shopify的服務器上),我無法在開發模式下重現它。

任何想法?

回答

3

500錯誤是你的問題,而不是Shopify的。你需要在heroku中檢查你的日誌,你可能會在提供的堆棧跟蹤中很快發現你的問題。

+0

這是一個很好的觀點。我剛剛評估過我的日誌('heroku logs -n 1500'),並且有一些有趣的線索指出錯誤可能在哪裏。是的,這可能是我的錯。謝謝! – Mike