Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error Fetching http body, No Content-Length, connection closed or chunked data #72

Open
Martvse opened this issue Aug 19, 2022 · 1 comment

Comments

@Martvse
Copy link

Martvse commented Aug 19, 2022

I don't know if this problem is caused by our own Magento environment or if it is the plugin itself. Still, I'm posting it here to help others who may be running into the same problem.

To Reproduce
Steps to reproduce the behavior:

  1. Login on the Magento backend as an administrator
  2. Open the sales -> order page
  3. In the order grid, choose a order and do mass action 'PostNL - Maak zendingen aan, print labels en meld voor' and submit the action

Expected result
The shipment is created, registered with PostNL and a popup appears with the corresponding labels

Actual result
An error is thrown: "Error Fetching http body, No Content-Length, connection closed or chunked data"

Workaround
Open Abstract.php in 'app/code/community/TIG/PostNL/Model/Core/Cif' and add the following line to the soapOptions array (after line 389):
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE

This fixed our problem.

** Please complete the following information**

  • Magento version: 1.9.4.5
  • PHP version: 5.6.40
  • TIG PostNL version: v1.16.6
@tig-jeffreybranderhorst
Copy link
Contributor

Hi @Martvse ,

Thank you for submitting the solution, I will indeed keep it open for future users. The magento 1 module has been end of life for a while. You could contact postnl to ask them to add this to the magento 1 they will decide if they want to add this extra line of code.

Have a great day,
Jeffrey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants