1
我正在關注https://github.com/Shopify/shopify_python_api的教程,但在步驟4我總是得到一個「500內部服務器錯誤」。500內部服務器錯誤嘗試啓動與shopify python api的會話
我不知道我是否按照正確的步驟操作。
第3步之後,我參觀permission_url
的URL在瀏覽器中點擊「安裝」,然後從我重定向到一個叫做params
蟒蛇dict
的URL複製數據。
在執行步驟4,我得到:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../lib/python2.7/site-packages/shopify/session.py", line 53, in __init__
self.token = self.request_token(params['code'])
File ".../lib/python2.7/site-packages/shopify/session.py", line 90, in request_token
response = connection.post(access_token_path, ShopifyResource.headers)
File ".../lib/python2.7/site-packages/pyactiveresource/connection.py", line 313, in post
return self._open('POST', path, headers=headers, data=data)
File ".../lib/python2.7/site-packages/shopify/base.py", line 18, in _open
self.response = super(ShopifyConnection, self)._open(*args, **kwargs)
File ".../lib/python2.7/site-packages/pyactiveresource/connection.py", line 258, in _open
response = Response.from_httpresponse(self._handle_error(err))
File ".../lib/python2.7/site-packages/pyactiveresource/connection.py", line 367, in _handle_error
raise ServerError(err)
ServerError: HTTP Error 500: Internal Server Error
你能否給我提供應用程序ID。這是您從合作伙伴儀表板轉到應用程序時的網址中的數字。例如。 'https:// app.shopify.com/services/partners/api_clients/124374'表示我的應用程序ID是124374. – 2012-07-26 15:12:39
因此,您的意思是我不能只轉到myshopnamemyshopify.com/admin/api單擊「生成新應用程序」使用那裏提供的數據? 因爲我沒有合作伙伴帳戶。 – artemis 2012-07-27 08:39:03