API version: v24.12.0
I am getting a : Undefined array key "Content-Type" exception when I perform batch operations:
Undefined array key \"Content-Type\" at /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/ObjectSerializer.php:153)
[stacktrace]
#0 /workspace/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(290): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/ObjectSerializer.php(153): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
#2 /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/ObjectSerializer.php(280): Aspose\\Words\\ObjectSerializer::parseMultipart()
#3 /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(56708): Aspose\\Words\\ObjectSerializer::parseBatchResponse()
#4 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(209): Aspose\\Words\\WordsApi->Aspose\\Words\\{closure}()
#5 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\\Promise\\Promise::callHandler()
#6 /workspace/laravel/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}()
#7 /workspace/laravel/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(167): GuzzleHttp\\Promise\\TaskQueue->run()
#8 /workspace/laravel/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(206): GuzzleHttp\\Handler\\CurlMultiHandler->tick()
#9 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\\Handler\\CurlMultiHandler->execute()
#10 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\\Promise\\Promise->invokeWaitFn()
#11 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\\Promise\\Promise->waitIfPending()
#12 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\\Promise\\Promise->invokeWaitList()
#13 /workspace/laravel/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\\Promise\\Promise->waitIfPending()
#14 /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(56584): GuzzleHttp\\Promise\\Promise->wait()
#15 /workspace/laravel/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(56565): Aspose\\Words\\WordsApi->batchWithHttpInfo()
#16 /workspace/laravel/app/Libraries/AsposeDispatcher.php(172): Aspose\\Words\\WordsApi->batch()
If I build the document without batching it works correctly.