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

Latest 2.20.0 causes 415 error, fixed by downgrading to 2.19.2 #212

Closed
basepack opened this issue Dec 5, 2022 · 8 comments
Closed

Latest 2.20.0 causes 415 error, fixed by downgrading to 2.19.2 #212

basepack opened this issue Dec 5, 2022 · 8 comments

Comments

@basepack
Copy link

basepack commented Dec 5, 2022

Current Behavior

Cannot do an API call via Mollie::api()->payments()->create([ your data ]);

Possible Solution

Downgrade to 2.19.2 works immediately.

Steps to Reproduce (for bugs)

Upgrade to 2.20.0 and call the Payments API.

Context

Full error:

Error executing API call (422: Unprocessable Entity): The webhook URL is invalid because it is unreachable from Mollie's point of view.. Field: webhookUrl. Documentation: https://docs.mollie.com/overview/handling-errors
@RamonSmit
Copy link

I second this, had the same issue. Already had a phone call with Mollie about this. I think its related to #202.

@sandervanhooft
Copy link
Collaborator

Hi,

I'll look into this later tonight.

If possible, can you share the actual code you're using so I can reproduce this properly? And confirm that it's throwing the 422 as reported in your ticket description, not a 415 as in the ticket title?

@sandervanhooft
Copy link
Collaborator

Cc @Skullbock

@basepack
Copy link
Author

basepack commented Dec 5, 2022

Hi,

I'll look into this later tonight.

If possible, can you share the actual code you're using so I can reproduce this properly? And confirm that it's throwing the 422 as reported in your ticket description, not a 415 as in the ticket title?

I have more of them 😜
’’’
Mollie\Api\Exceptions\ApiException
[2022-12-05T16:22:59+0100] Error executing API call (415: Unsupported Input Received): This API only accepts application/json or application/x-www-form-urlencoded or multipart/form-data as content-type.. Documentation: https://docs.mollie.com/overview/handling-errors
’’’

@Skullbock
Copy link
Contributor

@basepack can you test the attached pr #213 ? Seems like it adds a double contentype header that makes mollie go nuts.

@sandervanhooft
Copy link
Collaborator

@basepack @Skullbock I am reverting to the former http client resolution in the MollieServiceProvider for now so I can get some sleep tonight :) . Will investigate later this week, including the proposed PR #213.

Thanks for reporting and helping out everyone, much appreciated.

@sandervanhooft
Copy link
Collaborator

@sandervanhooft
Copy link
Collaborator

All good now!

v2.20.2 release notes

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