stagedUploadsCreate graphql query incorrect parameters in response

VishnuRam
Visitor
1 0 0

I have tried uploading medias using stagedUploadsCreate mutation query from springboot and have successfully done it. When I retried it after one day it seems error during upload. Usually I get 8 parameters in response of the mutation query along with the placeholder url to which I usually post the image data. it contains X-Goog-Algorithm, content_type, acl etc. So I usually parse the response parameters and set it in the param of the POST request of the media upload. But now it seems I only get two parameters in the response of the mutation query and all other parameters are appended as query param to the url of the stagedTarget. So the code stability is breaking. what is the solution to fix this permanently if goes production. see the below response.


https://shopify-staged-uploads.storage.googleapis.com/tmp/path/files/d5945a0f-/image.jpg?X-Goog-Algo...

Replies 0 (0)