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

SOAP Violation of encoding rules #9

Closed
fazed opened this issue Feb 10, 2020 · 9 comments
Closed

SOAP Violation of encoding rules #9

fazed opened this issue Feb 10, 2020 · 9 comments

Comments

@fazed
Copy link

fazed commented Feb 10, 2020

Hi,

We're experiencing issues when trying to pay for an order in the checkout (last step). After investigating the error log, we found the following message:
[2020-02-10 09:33:00] main.CRITICAL: SOAP-ERROR: Encoding: Violation of encoding rules {"exception":"[object] (SoapFault(code: 0): SOAP-ERROR: Encoding: Violation of encoding rules at xxxx/vendor/buckaroo/magento2/Soap/Client/SoapClientWSSEC.php:33)"} []

Previously the payments worked just fine, but since we've upgraded Magento from 2.3.3 to 2.3.4 this issue started to appear. Currently we have the latest Buckaroo module version installed (1.17.0). We also confirmed whether the settings in the admin have the correct values. The store is running in test mode.

Any help is appreciated, this issue is currently blocking our Magento upgrades.

@saranchuk-hys
Copy link
Contributor

Hello @fazed !
Thanks for your request!

Could you please specify:

  • did you use Magento Open Source 2.3.4 ?
  • which php version use ?
  • which payment method was selected ?

@Sil-B
Copy link

Sil-B commented Feb 10, 2020

@saranchuk-hys We have the same issue after upgrading to 2.3.4

  • Magento open Source
  • 7.2.xxx
  • any payment method.

@fazed
Copy link
Author

fazed commented Feb 10, 2020

Hi @saranchuk-hys, thanks for the fast response.

We're using:

  • Magento 2.3.4 CE
  • PHP 7.3.x
  • Any payment method

@Buckaroo-Rens
Copy link
Collaborator

@Sil-B @fazed We are currently unable to reproduce this issue on our own testing environment. Could you please give us some additional information? What checkout extension are you using etc. Thank you in advance.

@Sil-B
Copy link

Sil-B commented Feb 11, 2020

@Buckaroo-Rens Thanks for the quick reply. For this project we are using the Amasty One Step Checkout :(. I did not try it with the native checkout.

@Buckaroo-Rens
Copy link
Collaborator

@Sil-B Could you please test with native checkout? We do not support the Amasty One Step Checkout currently.

@Sil-B
Copy link

Sil-B commented Feb 11, 2020

@Buckaroo-Rens I've tested it with native checkout and default lume theme. Same issue:

[2020-02-11 13:21:13] main.CRITICAL: SOAP-ERROR: Encoding: string '6\xe9...' is not a valid utf-8 string {"exception":"[object] (SoapFault(code: 0): SOAP-ERROR: Encoding: string '6\\xe9...' is not a valid utf-8 string at /home/xxx/magento2/vendor/buckaroo/magento2/Soap/Client/SoapClientWSSEC.php:33)"} []

@fazed
Copy link
Author

fazed commented Feb 12, 2020

@Sil-B, we've managed to fix our issue by flushing the WSDL cache. Apparently when upgrading PHP from < 7.3 to >= 7.3, the cached WSDL files are borked.

@Buckaroo-Rens
Copy link
Collaborator

Issue of @Sil-B was fixed by filling in the Buckaroo credentials again. Issue closed.

CyberSecutor added a commit to CyberSecutor/Magento2 that referenced this issue Dec 3, 2020
When setting a samesite cookie behind an SSL offloading loadbalancer the secure flag does not get set automatically.
This raises an exception causing a 502 denial of service.

```
"0":"Cookie must be secure in order to use the SameSite None directive.","1":"buckaroo-it#1 BuckarooMagento2ModelPluginFixSession->beforeSetPublicCookie() called at [vendor/magento/framework/Interception/Interceptor.php:121]
buckaroo-it#2 MagentoFrameworkStdlibCookiePhpCookieManagerInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
buckaroo-it#3 MagentoFrameworkStdlibCookiePhpCookieManagerInterceptor->___callPlugins() called at [generated/code/Magento/Framework/Stdlib/Cookie/PhpCookieManager/Interceptor.php:23]
buckaroo-it#4 MagentoFrameworkStdlibCookiePhpCookieManagerInterceptor->setPublicCookie() called at [vendor/magento/framework/Session/SessionManager.php:247]
buckaroo-it#5 MagentoFrameworkSessionSessionManager->renewCookie() called at [vendor/magento/framework/Session/SessionManager.php:212]
buckaroo-it#6 MagentoFrameworkSessionSessionManager->start() called at [vendor/magento/framework/Interception/Interceptor.php:58]
buckaroo-it#7 MagentoFrameworkSessionGenericInterceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
buckaroo-it#8 MagentoFrameworkSessionGenericInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
buckaroo-it#9 MagentoFrameworkSessionGenericInterceptor->___callPlugins() called at [generated/code/Magento/Framework/Session/Generic/Interceptor.php:23]
buckaroo-it#10 MagentoFrameworkSessionGenericInterceptor->start() called at [vendor/magento/framework/Session/SessionManager.php:141]
buckaroo-it#11 MagentoFrameworkSessionSessionManager->__construct() called at [generated/code/Magento/Framework/Session/Generic/Interceptor.php:14]
buckaroo-it#12 MagentoFrameworkSessionGenericInterceptor->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]
buckaroo-it#13 MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:108]
buckaroo-it#14 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
buckaroo-it#15 MagentoFrameworkObjectManagerFactoryCompiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
buckaroo-it#16 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
buckaroo-it#17 MagentoFrameworkObjectManagerFactoryCompiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
buckaroo-it#18 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
buckaroo-it#19 MagentoFrameworkObjectManagerFactoryCompiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
buckaroo-it#20 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
buckaroo-it#21 MagentoFrameworkObjectManagerFactoryCompiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:125]
buckaroo-it#22 MagentoFrameworkObjectManagerFactoryCompiled->parseArray() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:86]
buckaroo-it#23 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
buckaroo-it#24 MagentoFrameworkObjectManagerObjectManager->get() called at [vendor/magento/framework/App/FrontController.php:86]
buckaroo-it#25 MagentoFrameworkAppFrontController->__construct() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:14]
buckaroo-it#26 MagentoFrameworkAppFrontControllerInterceptor->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]
buckaroo-it#27 MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:108]
buckaroo-it#28 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
buckaroo-it#29 MagentoFrameworkObjectManagerObjectManager->get() called at [vendor/magento/framework/App/Http.php:115]
buckaroo-it#30 MagentoFrameworkAppHttp->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
buckaroo-it#31 MagentoFrameworkAppBootstrap->run() called at [pub/index.php:40]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants