SageMakerRuntimeClient->invokeEndpointAsync() requires 'Body' parameter #2761
Labels
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I`m trying to use invokeEndpointAsync() method of SageMakerRuntimeClient. When i try to run my code, I've got InvalidArgumentException:
Please pay your attention: according to documentation 'Body' is not required for invokeEndpointAsync() method.
My code:
So, if I'll add
'Body' => ''
to method parameters, I'll receive GuzzleHttp\Promise\Promise instead of result that's I've expected according to documentation:Expected Behavior
Expected result according to documentation:
Result from working example for the same method (on Python):
Python code:
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.278
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP version: 8.2.1, OS: Ubuntu 20.04.5 LTS
The text was updated successfully, but these errors were encountered: