1
我試圖推動一個zip文件iron.io使用PHP與cURL但我總是得到這個錯誤。 - 我的隊友能夠做到,而且我也這樣做,但是會產生異常。 有人有同樣的錯誤或問題?有任何想法嗎 ?我有種絕望的感謝錯誤推送代碼到IRON.io使用PHP
API POST: 'https://worker-aws-us-east-1.iron.io:443/2/projects/560c4ef63dc302XXXXXXX/codes'
<br />
<b>Fatal error</b>: Uncaught exception 'Http_Exception' with message 'http error: 400 | {"msg":"Code package zip file required if no image specified or using iron/images."}' in /Applications/MAMP/htdocs/www/application/libraries/ironmq/IronCore.class.php:352
Stack trace:
#0 /Applications/MAMP/htdocs/www/application/libraries/ironmq/IronCore.class.php(343): IronCore->reportHttpError(400, '{"msg":"Code pa...')
#1 /Applications/MAMP/htdocs/www/application/libraries/ironmq/IronCore.class.php(305): IronCore->callWithRetries()
#2 /Applications/MAMP/htdocs/www/application/libraries/ironworker/IronWorker.class.php(303): IronCore->apiCall('POST', 'projects/560c4e...', Array, Array)
#3 /Applications/MAMP/htdocs/www/application/libraries/ironworker/CIWorker.php(61): IronWorker->postCode('ironio.php', '/Applications/M...', 'lumiary-stage')
#4 /Applications/MAMP/htdocs/www/application/controllers/admin/tools.php(52): CIWorker->package('lumiary-stage')
#5 [internal function]: Tools->package('lumiary-stage')
#6 /Applications/MAMP/htdocs/www/sy in <b>/Applications/MAMP/htdocs/www/application/libraries/ironmq/IronCore.class.php</b> on line <b>352</b><br />
您的請求格式錯誤(400 =錯誤的請求)。您還可以在錯誤描述中獲得解釋:如果沒有指定圖像或使用鐵/圖像,則需要代碼包zip文件。 –
@MihaiCaracostea你應該把它作爲答案而不是評論。 –
@TravisR我已經發布了它作爲答案。乾杯! –