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

Uncaught JsonException: Malformed UTF-8 characters, possibly incorrectly encoded #4

Closed
konradstrek opened this issue Dec 30, 2020 · 3 comments

Comments

@konradstrek
Copy link

Hi! I'm using PHP 7.4.3 and trying to verify identity token. The response I get: Uncaught JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /home/x/domains/domain.com/public_html/apple/lcobucci/jwt/src/Parsing/Decoder.php:50. Changing to older PHP version helps, but is there any solution to make it working on >7.4.3? Thanks

@hywak
Copy link
Collaborator

hywak commented Dec 30, 2020

Hey @konradstrek.

Thank you for opening this issue.

To be honest I haven't tested it on version 7.4.3. I will take a look at the issue you posted and prepare a fix in the soon.

Thanks.

@hywak
Copy link
Collaborator

hywak commented Jan 21, 2021

@konradstrek which version of the library did you use?

I tried to reproduce that issue on php 7.4.14 using the newest version of the library (1.2.0) and there was no error. When I used the older lib version (1.1.0) then I got an error but not JSON encoding one.

I suggest using the newest lib version. Ideally, clone clean repo or make sure that vendor dir and composer.lock file are removed before installing composer dependencies.

@hywak
Copy link
Collaborator

hywak commented Feb 1, 2021

I suppose the problem is resolved. I'm closing the issue, in case of any further problems please open a new issue.

@hywak hywak closed this as completed Feb 1, 2021
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

2 participants