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

InvalidJSONFormatException #1

Closed
dm-coding opened this issue Dec 7, 2016 · 2 comments
Closed

InvalidJSONFormatException #1

dm-coding opened this issue Dec 7, 2016 · 2 comments

Comments

@dm-coding
Copy link

Hi there,

We are getting an invalid JSON format exception when we run the cron task.

[07-Dec-2016 14:49:40 UTC] PHP Fatal error: Uncaught JsonRPC\Exception\InvalidJsonFormatException: Malformed payload in /var/www/app/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Validator/JsonFormatValidator.php:26 Stack trace: #0 /var/www/app/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Response/ResponseParser.php(86): JsonRPC\Validator\JsonFormatValidator::validate(NULL) #1 /var/www/app/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Client.php(192): JsonRPC\Response\ResponseParser->parse() #2 /var/www/app/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Client.php(176): JsonRPC\Client->sendPayload('{"jsonrpc":"2.0...') #3 /var/www/app/plugins/Imap/cron.php(49): JsonRPC\Client->execute('getAllProjects') #4 {main} thrown in /var/www/app/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Validator/JsonFormatValidator.php on line 26

tasks

@EstebanMonge
Copy link
Owner

I know about this error is related with characters in mail body or subject. I need work in correct it.\

Can you try fetch email without special characters? Are you sending from with some email client?

EstebanMonge added a commit that referenced this issue Feb 24, 2017
@EstebanMonge
Copy link
Owner

I resolved this issue with a complete rewrite and utilization of this library https://github.com/tedious/Fetch

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