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

Import payments is missing content-type header #60

Closed
Tetragramat opened this issue Jun 20, 2024 · 2 comments
Closed

Import payments is missing content-type header #60

Tetragramat opened this issue Jun 20, 2024 · 2 comments
Labels

Comments

@Tetragramat
Copy link

Request POST "https://fioapi.fio.cz/v1/rest/import/" is being send without header Content-Type: multipart/form-data.

That means payment imports don't work and end with 400 Bad Request and html content containing Required request parameter 'token' for method parameter type String is not present.

@h4kuna h4kuna added the bug label Jun 21, 2024
@h4kuna
Copy link
Owner

h4kuna commented Jun 21, 2024

I fixed. If I use GuzzleHttp\Psr7\MultipartStream, the guzzle automaticaly set header multipart with right boundary. If you use symfony client, you found the bug. Could you try master. I tested too :)

@h4kuna
Copy link
Owner

h4kuna commented Jun 27, 2024

fixed v3.0.11

@h4kuna h4kuna closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants