Closed basepack closed 1 year ago
I second this, had the same issue. Already had a phone call with Mollie about this. I think its related to #202.
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?
Cc @Skullbock
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 ’’’
@basepack can you test the attached pr #213 ? Seems like it adds a double contentype header that makes mollie go nuts.
@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.
All good now!
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: