Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to get query parameters #3807

Unanswered
kaissun asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /