- 
  Notifications
 
You must be signed in to change notification settings  - Fork 6.9k
 
-
Hello team,
I am using this example to have my own sagemaker model:
https://github.com/aws/amazon-sagemaker-examples/tree/main/advanced_functionality/scikit_bring_your_own 
It is using the proxy server nginx. It is working fine when I build and test locally using the docker image with entrypoint serve file script.
But, in the seconde test case, I deployed the sagemaker model, and I tried to call the invocation method using the SDK library for JAVA and trying to call with query parameters and even with a custom header, I cannot read them as I have to use them as parameters.
I tried to play with nginx config in this file but no success:
https://github.com/aws/amazon-sagemaker-examples/blob/main/advanced_functionality/scikit_bring_your_own/container/decision_trees/nginx.conf 
Do you have any idea how to pass the query parameters and read them in the perdictor.py file through invocations post request?
Thanks in adance.
Beta Was this translation helpful? Give feedback.