[GH-ISSUE #67] C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113 #11

Closed
opened 2026-03-03 16:35:53 +03:00 by kerem · 1 comment
Owner

Originally created by @mesibug on GitHub (Jan 13, 2023).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/67

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.httpsms.com/v1/messages/send resulted in a 422 Unprocessable Entity response: {"data":{"content":["The content field must be maximum 1024 char"]},"message":"validation errors while sending message", (truncated...) in C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\TaskQueue.php(48): GuzzleHttp\Prom in C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

Originally created by @mesibug on GitHub (Jan 13, 2023). Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/67 Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.httpsms.com/v1/messages/send` resulted in a `422 Unprocessable Entity` response: {"data":{"content":["The content field must be maximum 1024 char"]},"message":"validation errors while sending message", (truncated...) in C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\promises\src\TaskQueue.php(48): GuzzleHttp\Prom in C:\xampp\htdocs\bulkemail\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113
kerem closed this issue 2026-03-03 16:35:54 +03:00
Author
Owner

@AchoArnold commented on GitHub (Jan 13, 2023):

What's the question @mesibug ?

{"data":{"content":["The content field must be maximum 1024 char"]},

From the error message you're getting this error because the content field is longer than 1024 characters.

Which type of content are you sending via the API?

<!-- gh-comment-id:1381753067 --> @AchoArnold commented on GitHub (Jan 13, 2023): What's the question @mesibug ? ``` {"data":{"content":["The content field must be maximum 1024 char"]}, ``` From the error message you're getting this error because the content field is longer than 1024 characters. Which type of content are you sending via the API?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/httpsms#11
No description provided.