dw250100785 / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Error handling in profile execution / API #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add better error handling and recover gracefully with helpful error msgs.

    * Starting profile execution, please wait...
    * Warning: Please don't close window during importing/exporting data

    * Starting ZetaPrints_WebToPrint_Model_Convert_Parser_Template :: parse
    * Notice: Undefined offset: 1 in
/home/arzuay/public_html/app/code/local/ZetaPrints/Zpapi/Model/zp_api.php
on line 828
    * Finished profile execution.

Original issue reported on code.google.com by zetapri...@gmail.com on 6 Dec 2009 at 2:22

GoogleCodeExporter commented 9 years ago
Do not fail if nothing is imported. Give a useful msg

Original comment by zetapri...@gmail.com on 8 Dec 2009 at 12:44

GoogleCodeExporter commented 9 years ago
Additional checks and messages were added.

Original comment by Anatoly....@gmail.com on 5 Jan 2010 at 2:30

GoogleCodeExporter commented 9 years ago
What checks and what msgs?

Original comment by zetapri...@gmail.com on 7 Jan 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Checks for network errors, server-side errors, incorrect xml.

In case the errors you get "Error in receiving list of catalogs", "Error in 
receiving
list of templates for catalog <catalog_name>" and "Error in receiving detailes 
for
template <template_guid>. Leaving the template unmodified" messages.

Original comment by Anatoly....@gmail.com on 7 Jan 2010 at 8:47

GoogleCodeExporter commented 9 years ago
This can be partially tested by importing templates, making changes to 
templates and
catalogs, changing the API key in M. and trying to re-sync again.

Original comment by zetapri...@gmail.com on 7 Jan 2010 at 1:01

GoogleCodeExporter commented 9 years ago
I added a new template to the catalog:
http://magento.zetaprints.com/?page=template-initial;Magnify=0;TemplateID=6E9930
98-5249-4C8C-8DF4-FC01E09A0D50

Ran the "product creation" profile and created this product:
http://www.zetaprints.com/magedev/index.php/email-signatures/email-signature-01-
no-watermak.html?personalization=1

Made changes to the templates field names, changed the API key in M to an 
invalid one
and ran the "data import" profile. Got the same err msg that I got in issue #45:

    * Starting profile execution, please wait...
    * Warning: Please don't close window during importing/exporting data

    * Starting ZetaPrints_WebToPrint_Model_Convert_Parser_Template :: parse
    * Refresh all templates
    * Warning: curl_errno(): 67 is not a valid cURL handle resource in
/mnt/ebs1/apps/magedev/app/code/local/ZetaPrints/Zpapi/Model/zp_api.php on line 
863
    * Finished profile execution.

Original comment by agur...@gmail.com on 8 Jan 2010 at 12:51

GoogleCodeExporter commented 9 years ago
A bug was fixied in 1.6.0.0beta2 (installed on magedev)

Original comment by Anatoly....@gmail.com on 8 Jan 2010 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by Anatoly....@gmail.com on 8 Jan 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Started with a successful template import. Ran the "Data import" and "Product
creation" profiles for this template:
http://magento.zetaprints.com/?page=template;TemplateID=AC27317D-DCAA-4FEC-BEEA-
96416DB57DCE

Got useful messages like:
# Template AC27317D-DCAA-4FEC-BEEA-96416DB57DCE is succesfully added.
# Total number of templates: 48
# Number of added templates: 1
# Number of up to date templates: 0
# Number of updated templates: 47

Created this product:
http://www.zetaprints.com/magedev/index.php/email-signatures/email-signature-02-
copy.html?personalization=1

Made changes to the templates field names, default preview... changed the API 
key in
M to an invalid one and ran the "data import" profile. Got this err:

    * Starting profile execution, please wait...
    * Warning: Please don't close window during importing/exporting data

    * Starting ZetaPrints_WebToPrint_Model_Convert_Parser_Template :: parse
    * Refresh all templates
    * Error in receiving catalogs: Zetaprints error: ; Curl error:
    * Starting ZetaPrints_WebToPrint_Model_Convert_Mapper_Product_Updating :: map
    * Finished profile execution.

Original comment by agur...@gmail.com on 10 Jan 2010 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 13 Jan 2010 at 11:26