-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Management API doesn't work with S3 presigned URL #1293
Comments
@Iron-Stark can you try make the mar file public in s3 to see if it work? |
@lxning Thank you for your response. :-) Creating public s3 files is disabled in our corporate accounts. Also the s3 presigned uri has the key and token embedded in it as parameter, so anyone with that url can download the object irrespective of it being a public object or not. I will try your suggestion out using a personal AWS account but I don't believe it will solve the issue. |
any news on this one? having the same problem for 0.5.0 |
Still having issues with this - however we have narrowed down the cause of the issue to the following As we're not currently using S3-SSE-KMS, the function defaults to the following Apache function, which can throw an error from a number of IO issues. We will try with S3-SSE-KMS enabled and see if that fixes it. |
I have encountered the exact same issue, I suspect it is due to TorchServe not handling s3 v4 signature URLs as previously mentioned in issue 669. I’m not sure why this issue was closed as it was not resolved. |
I am currently facing the same problem. Download via browser or using curl works fine, but torchserve cannot retrieve the model. I always get an HTTP 400 error. |
Same here, quite the dealbreaker |
Any updates on this issue? |
Also facing this error - would be great if this could be fixed! |
Context
I am trying to use the management API with a S3 presigned URL to download and register a new model. This is the code snippet:
Doing a normal GET on the presigned URI works but it doesn't work when used with the model management API. I tried all the workarounds mentioned in #669 but those are not giving any results as well. Can you please recommend what to do to make it work. Listing the errors I get in various situations:
Using the raw presigned URI:
Replacing & with %26:
Using the torchserve 0.4.2-cpu docker image.
Your Environment
[If public url then provide link.]: S3 bucket
Expected Behavior
It should be able to download the model from S3 and register it.
Current Behavior
Returning a 400
Steps to Reproduce
...
The text was updated successfully, but these errors were encountered: