Error when printing label
-
Hi,
I got an error using the shipping manager plugin. Whenever I push the print label button it redirects to an 500 http error page. I think there’s something else wrong too because I don’t get the option to choose the shipping methode when ordering. I logged the errors and this came up:
12-06-2016 @ 13:49:16 – [DEBUG] curl request: {“10002″:”https:\/\/api-parcel.bpost.be\/services\/shm\/121765\/orders\/\/labels\/A6\/withReturnLabels”,”10018″:”PHP Bpost\/3.3.0 “,”19913″:1,”13″:30,”84″:2,”10023”:[“Accept: application\/vnd.bpost.shm-label-pdf-v3.4+XML”,”Authorization: Basic MTIxNzY1OmdsYXNzZm9ybGlmZTQyMA==”]}
12-06-2016 @ 13:49:16 – [DEBUG] curl response: {“status”:”0 ()”,”headers”:{“url”:”https:\/\/api-parcel.bpost.be\/services\/shm\/121765\/orders\/\/labels\/A6\/withReturnLabels”,”content_type”:”text\/plain; charset=ISO-8859-1″,”http_code”:404,”header_size”:235,”request_size”:238,”filetime”:-1,”ssl_verify_result”:0,”redirect_count”:0,”total_time”:0.062101,”namelookup_time”:0.001252,”connect_time”:0.009679,”pretransfer_time”:0.037071,”size_upload”:0,”size_download”:203,”speed_download”:3268,”speed_upload”:0,”download_content_length”:-1,”upload_content_length”:0,”starttransfer_time”:0.061075,”redirect_time”:0,”redirect_url”:””,”primary_ip”:”193.191.180.51″,”certinfo”:[],”primary_port”:443,”local_ip”:”176.62.173.236″,”local_port”:50530},”response”:”Error in request: Could not find resource for relative : \/external\/121765\/orders\/\/labels\/A6\/withReturnLabels of full path: http:\/\/shm-res-pr.netpost\/api\/external\/121765\/orders\/\/labels\/A6\/withReturnLabels”}
12-06-2016 @ 13:49:16 – [ERROR] Invalid response: Error in request: Could not find resource for relative : /external/121765/orders//labels/A6/withReturnLabels of full path: http://shm-res-pr.netpost/api/external/121765/orders//labels/A6/withReturnLabels: {“code”:404,”message”:”Invalid response: Error in request: Could not find resource for relative : \/external\/121765\/orders\/\/labels\/A6\/withReturnLabels of full path: http:\/\/shm-res-pr.netpost\/api\/external\/121765\/orders\/\/labels\/A6\/withReturnLabels”,”trace”:[{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/vendor\/antidot-be\/bpost-api-library\/src\/Bpost.php”,”line”:564,”function”:”doCall”,”class”:”Bpost\\BpostApiClient\\Bpost”,”type”:”->”,”args”:[“\/orders\/\/labels\/A6\/withReturnLabels”,null,[“Accept: application\/vnd.bpost.shm-label-pdf-v3.4+XML”]]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/vendor\/antidot-be\/bpost-api-library\/src\/Bpost.php”,”line”:591,”function”:”getLabel”,”class”:”Bpost\\BpostApiClient\\Bpost”,”type”:”->”,”args”:[“\/orders\/”,”A6″,true,true]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/api\/class-wc-bpost-shipping-api-label.php”,”line”:32,”function”:”createLabelForOrder”,”class”:”Bpost\\BpostApiClient\\Bpost”,”type”:”->”,”args”:[“”,”A6″,true,true]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-retriever.php”,”line”:45,”function”:”get_label”,”class”:”WC_BPost_Shipping\\Api\\WC_BPost_Shipping_Api_Label”,”type”:”->”,”args”:[“”,”A6″,true]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-attachment.php”,”line”:57,”function”:”get_label_as_file”,”class”:”WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Retriever”,”type”:”->”,”args”:[“”,”A6″,true]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-attachment.php”,”line”:85,”function”:”create_attachment”,”class”:”WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Attachment”,”type”:”->”,”args”:[]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-controller.php”,”line”:100,”function”:”get_url”,”class”:”WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Attachment”,”type”:”->”,”args”:[]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/classes\/class-wc-bpost-shipping-hooks.php”,”line”:294,”function”:”load_template”,”class”:”WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Controller”,”type”:”->”,”args”:[]},{“function”:”bpost_virtual_page_label”,”class”:”WC_BPost_Shipping_Hooks”,”type”:”->”,”args”:[“”]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-includes\/plugin.php”,”line”:524,”function”:”call_user_func_array”,”args”:[[{},”bpost_virtual_page_label”],[“”]]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-api.php”,”line”:100,”function”:”do_action”,”args”:[“woocommerce_api_page-label”]},{“function”:”handle_api_requests”,”class”:”WC_API”,”type”:”->”,”args”:[{“public_query_vars”:[“m”,”p”,”posts”,”w”,”cat”,”withcomments”,”withoutcomments”,”s”,”search”,”exact”,”sentence”,”calendar”,”page”,”paged”,”more”,”tb”,”pb”,”author”,”order”,”orderby”,”year”,”monthnum”,”day”,”hour”,”minute”,”second”,”name”,”category_name”,”tag”,”feed”,”author_name”,”static”,”pagename”,”page_id”,”error”,”attachment”,”attachment_id”,”subpost”,”subpost_id”,”preview”,”robots”,”taxonomy”,”term”,”cpage”,”post_type”,”embed”,”post_format”,”wc-api”,”nf_sub”,”product_cat”,”product_tag”,”product”,”rest_route”,”pagesections”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-auth-version”,”wc-auth-route”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-api-version”,”wc-api-route”,”wc-api”,”display_custom_css”,”wishlist-action”,”wishlist_id”],”private_query_vars”:[“offset”,”posts_per_page”,”posts_per_archive_page”,”showposts”,”nopaging”,”post_type”,”post_status”,”category__in”,”category__not_in”,”category__and”,”tag__in”,”tag__not_in”,”tag__and”,”tag_slug__in”,”tag_slug__and”,”tag_id”,”post_mime_type”,”perm”,”comments_per_page”,”post__in”,”post__not_in”,”post_parent”,”post_parent__in”,”post_parent__not_in”,”title”],”extra_query_vars”:[],”query_vars”:{“wc-api”:”page-label”},”query_string”:null,”request”:”wc-api\/page-label”,”matched_rule”:”wc-api(\/(.*))?\/?$”,”matched_query”:”&wc-api=page-label”,”did_permalink”:true}]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-includes\/plugin.php”,”line”:600,”function”:”call_user_func_array”,”args”:[[{“server”:null,”authentication”:null},”handle_api_requests”],[{“public_query_vars”:[“m”,”p”,”posts”,”w”,”cat”,”withcomments”,”withoutcomments”,”s”,”search”,”exact”,”sentence”,”calendar”,”page”,”paged”,”more”,”tb”,”pb”,”author”,”order”,”orderby”,”year”,”monthnum”,”day”,”hour”,”minute”,”second”,”name”,”category_name”,”tag”,”feed”,”author_name”,”static”,”pagename”,”page_id”,”error”,”attachment”,”attachment_id”,”subpost”,”subpost_id”,”preview”,”robots”,”taxonomy”,”term”,”cpage”,”post_type”,”embed”,”post_format”,”wc-api”,”nf_sub”,”product_cat”,”product_tag”,”product”,”rest_route”,”pagesections”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-auth-version”,”wc-auth-route”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-api-version”,”wc-api-route”,”wc-api”,”display_custom_css”,”wishlist-action”,”wishlist_id”],”private_query_vars”:[“offset”,”posts_per_page”,”posts_per_archive_page”,”showposts”,”nopaging”,”post_type”,”post_status”,”category__in”,”category__not_in”,”category__and”,”tag__in”,”tag__not_in”,”tag__and”,”tag_slug__in”,”tag_slug__and”,”tag_id”,”post_mime_type”,”perm”,”comments_per_page”,”post__in”,”post__not_in”,”post_parent”,”post_parent__in”,”post_parent__not_in”,”title”],”extra_query_vars”:[],”query_vars”:{“wc-api”:”page-label”},”query_string”:null,”request”:”wc-api\/page-label”,”matched_rule”:”wc-api(\/(.*))?\/?$”,”matched_query”:”&wc-api=page-label”,”did_permalink”:true}]]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-includes\/class-wp.php”,”line”:386,”function”:”do_action_ref_array”,”args”:[“parse_request”,[{“public_query_vars”:[“m”,”p”,”posts”,”w”,”cat”,”withcomments”,”withoutcomments”,”s”,”search”,”exact”,”sentence”,”calendar”,”page”,”paged”,”more”,”tb”,”pb”,”author”,”order”,”orderby”,”year”,”monthnum”,”day”,”hour”,”minute”,”second”,”name”,”category_name”,”tag”,”feed”,”author_name”,”static”,”pagename”,”page_id”,”error”,”attachment”,”attachment_id”,”subpost”,”subpost_id”,”preview”,”robots”,”taxonomy”,”term”,”cpage”,”post_type”,”embed”,”post_format”,”wc-api”,”nf_sub”,”product_cat”,”product_tag”,”product”,”rest_route”,”pagesections”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-auth-version”,”wc-auth-route”,”order-pay”,”order-received”,”orders”,”view-order”,”downloads”,”edit-account”,”edit-address”,”payment-methods”,”lost-password”,”customer-logout”,”add-payment-method”,”delete-payment-method”,”set-default-payment-method”,”wc-api-version”,”wc-api-route”,”wc-api”,”display_custom_css”,”wishlist-action”,”wishlist_id”],”private_query_vars”:[“offset”,”posts_per_page”,”posts_per_archive_page”,”showposts”,”nopaging”,”post_type”,”post_status”,”category__in”,”category__not_in”,”category__and”,”tag__in”,”tag__not_in”,”tag__and”,”tag_slug__in”,”tag_slug__and”,”tag_id”,”post_mime_type”,”perm”,”comments_per_page”,”post__in”,”post__not_in”,”post_parent”,”post_parent__in”,”post_parent__not_in”,”title”],”extra_query_vars”:[],”query_vars”:{“wc-api”:”page-label”},”query_string”:null,”request”:”wc-api\/page-label”,”matched_rule”:”wc-api(\/(.*))?\/?$”,”matched_query”:”&wc-api=page-label”,”did_permalink”:true}]]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-includes\/class-wp.php”,”line”:725,”function”:”parse_request”,”class”:”WP”,”type”:”->”,”args”:[“”]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-includes\/functions.php”,”line”:963,”function”:”main”,”class”:”WP”,”type”:”->”,”args”:[“”]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-blog-header.php”,”line”:16,”function”:”wp”,”args”:[]},{“file”:”\/data\/sites\/web\/funcglasscom\/www\/index.php”,”line”:17,”args”:[“\/data\/sites\/web\/funcglasscom\/www\/wp-blog-header.php”],”function”:”require”}],”file”:”\/data\/sites\/web\/funcglasscom\/www\/wp-content\/plugins\/bpost-shipping\/vendor\/antidot-be\/bpost-api-library\/src\/Bpost.php:269″}
12-06-2016 @ 13:49:16 – [DEBUG] curl request: {“10002″:”https:\/\/api-parcel.bpost.be\/services\/shm\/121765\/orders\/”,”10018″:”PHP Bpost\/3.3.0 “,”19913″:1,”13″:30,”84″:2,”10023”:[“Accept: application\/vnd.bpost.shm-order-v3.3+XML”,”Authorization: Basic MTIxNzY1OmdsYXNzZm9ybGlmZTQyMA==”]}
12-06-2016 @ 13:49:16 – [DEBUG] curl response: {“status”:”0 ()”,”headers”:{“url”:”https:\/\/api-parcel.bpost.be\/services\/shm\/121765\/orders\/”,”content_type”:”text\/plain; charset=ISO-8859-1″,”http_code”:405,”header_size”:244,”request_size”:207,”filetime”:-1,”ssl_verify_result”:0,”redirect_count”:0,”total_time”:0.053896,”namelookup_time”:2.7e-5,”connect_time”:0.00628,”pretransfer_time”:0.034179,”size_upload”:0,”size_download”:80,”speed_download”:1484,”speed_upload”:0,”download_content_length”:-1,”upload_content_length”:0,”starttransfer_time”:0.053203,”redirect_time”:0,”redirect_url”:””,”primary_ip”:”193.191.180.51″,”certinfo”:[],”primary_port”:443,”local_ip”:”176.62.173.236″,”local_port”:50532},”response”:”Error in request: No resource method found for GET, return 405 with Allow header”}I don’t know what could be wrong because i’ve entered the right account details etc.
Thanks in advance,
William
- The topic ‘Error when printing label’ is closed to new replies.