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

Api Library POST dont work after the change to use json_encode instead of http_build_query #221

Open
ghost opened this issue May 9, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented May 9, 2020

Bug Description

Q A
Mautic version 2.16.2
PHP version 7.3.17
Browser Chrome

Steps to reproduce

POST using Mautic Api Library dont work while using OAuth2 (for instance to create contacts), The library was working fine with OAuth2 when the library was using http_build_query , but since the library started to use json_encode method the all functions that require POST stopped working while using OAuth but it still work fine with Basic Auth.
It return this error when try to create something
errors: { 0: { code: "401", message: "The response has unexpected status code (401)." }

Log errors


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@wise-gorilla
Copy link
Contributor

@dongilbert @RCheesley I submitted a PR solving this issue, you can close this issue and merge this PR
#218

@RCheesley RCheesley transferred this issue from mautic/mautic Jul 1, 2020
@RCheesley RCheesley linked a pull request Jul 1, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants
@ghost @wise-gorilla and others