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

Malformed response received from server #128

Open
charigor opened this issue Oct 8, 2021 · 3 comments
Open

Malformed response received from server #128

charigor opened this issue Oct 8, 2021 · 3 comments

Comments

@charigor
Copy link

charigor commented Oct 8, 2021

This is my first experience with GoCardless.
I created access_token in the https://manage-sandbox.gocardless.com/developers
I get an error when I access the sandox api

image
'access_token' =>sandbox_*************
'environment' =>sandbox

when I use $customers = $client->customers()->list()->records;
image
error2
composer
What am I doing wrong?

@jjholmes927
Copy link
Contributor

jjholmes927 commented Oct 8, 2021

Hey Charigor,

Currently in order to connect to our API in sandbox using the PHP client, you will need to upgrade your gocardless-pro version from v4.11.0 to v4.14.0, as we are no longer pinning a certificate due to a change in the sandbox environment, this seems to be the cause of the Malformed Response you are receiving. This change will currently not affect production for now, but eventually we will be updating this on production too, therefore we advise you upgrade as soon as possible.

Sorry for any inconvenience caused and hope this helps and resolves your issue! Let me know if I can help out in any other way

@charigor
Copy link
Author

charigor commented Oct 8, 2021

Thank you for your prompt reply!
I upgraded to 4.14.0 version, but the error is still the same.
image

image

@ibraza04
Copy link

ibraza04 commented Jan 9, 2024

Hey, I also have the same error you have any solution?

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

3 participants