Print Label error, not working
-
Hi
I am using the bpost plugin (2.2.9), Woocommerce(2.6.14), WPML CMS(3.6.3) and WordPress(4.6.17)
when I try to print/show label from order detail (wp-admin -> Orders), there is found an error, and the bpost label is not printing/showing
Please try to figure out my issue.
below is the debug log of bpost plugin:
04-17-2020 @ 07:29:16 - [DEBUG] curl request: {"10002":"https:\/\/api.bpost.be\/services\/shm\/121665\/orders\/\/labels\/A6\/withReturnLabels","10018":"PHP Bpost\/3.3.0 ","19913":true,"13":30,"84":2,"10023":["Accept: application\/vnd.bpost.shm-label-pdf-v3.4+XML","Authorization: Basic xxxxxxxxxxxxxxxxx=="]} 04-17-2020 @ 07:29:16 - [DEBUG] curl response: {"status":"0 ()","headers":{"url":"https:\/\/api.bpost.be\/services\/shm\/121665\/orders\/\/labels\/A6\/withReturnLabels","content_type":"text\/plain; charset=ISO-8859-1","http_code":404,"header_size":317,"request_size":223,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.105567,"namelookup_time":0.004227,"connect_time":0.01766,"pretransfer_time":0.064754,"size_upload":0,"size_download":203,"speed_download":1922,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0.105542,"redirect_time":0,"redirect_url":"","primary_ip":"193.191.180.77","certinfo":[],"primary_port":443,"local_ip":"91.223.195.15","local_port":49140},"response":"Error in request: Could not find resource for relative : \/external\/121665\/orders\/\/labels\/A6\/withReturnLabels of full path: http:\/\/shm-res-pr.netpost\/api\/external\/121665\/orders\/\/labels\/A6\/withReturnLabels"} 04-17-2020 @ 07:29:16 - [ERROR] Invalid response: Error in request: Could not find resource for relative : /external/121665/orders//labels/A6/withReturnLabels of full path: https://shm-res-pr.netpost/api/external/121665/orders//labels/A6/withReturnLabels: {"code":404,"message":"Invalid response: Error in request: Could not find resource for relative : \/external\/121665\/orders\/\/labels\/A6\/withReturnLabels of full path: http:\/\/shm-res-pr.netpost\/api\/external\/121665\/orders\/\/labels\/A6\/withReturnLabels","trace":[{"file":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/bpost-shipping\/vendor\/antidot-be\/bpost-api-library\/src\/Bpost.php","line":563,"function":"doCall","class":"Bpost\\BpostApiClient\\Bpost","type":"->","args":["\/orders\/\/labels\/A6\/withReturnLabels",null,["Accept: application\/vnd.bpost.shm-label-pdf-v3.4+XML","Authorization: Basic MTIxNjY1OkFsZmEyMDE2JA=="]]},{"file":"\/var\/web\/vd5255\/public_html\/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\/\/labels\/A6\/withReturnLabels","A6",true,true]},{"file":"\/var\/web\/vd5255\/public_html\/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":"\/var\/web\/vd5255\/public_html\/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":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-attachment.php","line":65,"function":"get_label_as_file","class":"WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Retriever","type":"->","args":["","A6",true]},{"file":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/bpost-shipping\/classes\/label\/class-wc-bpost-shipping-label-attachment.php","line":103,"function":"create_attachment","class":"WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Attachment","type":"->","args":[]},{"file":"\/var\/web\/vd5255\/public_html\/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":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/bpost-shipping\/classes\/class-wc-bpost-shipping-hooks.php","line":295,"function":"load_template","class":"WC_BPost_Shipping\\Label\\WC_BPost_Shipping_Label_Controller","type":"->","args":[]},{"file":"\/var\/web\/vd5255\/public_html\/wp-includes\/plugin.php","line":524,"function":"bpost_virtual_page_label","class":"WC_BPost_Shipping_Hooks","type":"->","args":[""]},{"file":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-api.php","line":100,"function":"do_action","args":["woocommerce_api_page-label"]},{"file":"\/var\/web\/vd5255\/public_html\/wp-includes\/plugin.php","line":600,"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","pagename","page_id","error","attachment","attachment_id","subpost","subpost_id","preview","robots","taxonomy","term","cpage","post_type","embed","post_format","wc-api","collection","sitemap","sitemap_n","xsl","order-pay","order-received","orders","view-order","edit-account","edit-address","payment-methods","lost-password","customer-logout","add-payment-method","delete-payment-method","set-default-payment-method","product_cat","product_tag","product","rest_route","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","lang"],"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":"\/var\/web\/vd5255\/public_html\/wp-includes\/class-wp.php","line":388,"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","pagename","page_id","error","attachment","attachment_id","subpost","subpost_id","preview","robots","taxonomy","term","cpage","post_type","embed","post_format","wc-api","collection","sitemap","sitemap_n","xsl","order-pay","order-received","orders","view-order","edit-account","edit-address","payment-methods","lost-password","customer-logout","add-payment-method","delete-payment-method","set-default-payment-method","product_cat","product_tag","product","rest_route","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","lang"],"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":"\/var\/web\/vd5255\/public_html\/wp-includes\/class-wp.php","line":727,"function":"parse_request","class":"WP","type":"->","args":[""]},{"file":"\/var\/web\/vd5255\/public_html\/wp-includes\/functions.php","line":963,"function":"main","class":"WP","type":"->","args":[""]},{"file":"\/var\/web\/vd5255\/public_html\/wp-blog-header.php","line":16,"function":"wp","args":[]},{"file":"\/var\/web\/vd5255\/public_html\/index.php","line":17,"args":["\/var\/web\/vd5255\/public_html\/wp-blog-header.php"],"function":"require"}],"file":"\/var\/web\/vd5255\/public_html\/wp-content\/plugins\/bpost-shipping\/vendor\/antidot-be\/bpost-api-library\/src\/Bpost.php:269"} 04-17-2020 @ 07:29:16 - [DEBUG] curl request: {"10002":"https:\/\/api.bpost.be\/services\/shm\/121665\/orders\/","10018":"PHP Bpost\/3.3.0 ","19913":true,"13":30,"84":2,"10023":["Accept: application\/vnd.bpost.shm-order-v3.3+XML","Authorization: Basic MTIxNjY1OkFsZmEyMDE2JA=="]} 04-17-2020 @ 07:29:16 - [DEBUG] curl response: {"status":"0 ()","headers":{"url":"https:\/\/api.bpost.be\/services\/shm\/121665\/orders\/","content_type":"text\/plain; charset=ISO-8859-1","http_code":405,"header_size":326,"request_size":192,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.110981,"namelookup_time":1.7e-5,"connect_time":0.012318,"pretransfer_time":0.056077,"size_upload":0,"size_download":80,"speed_download":720,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0.110903,"redirect_time":0,"redirect_url":"","primary_ip":"193.191.180.77","certinfo":[],"primary_port":443,"local_ip":"91.223.195.15","local_port":49142},"response":"Error in request: No resource method found for GET, return 405 with Allow header"}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Print Label error, not working’ is closed to new replies.