I am trying to upload a file as part of a bulk operation with the GraphQL Admin API.
I invoked stagedUploadsCreate and the reponse provided the required values for the upload through the stagedMediaUploadTarget array.
The following curl invocation fails on Windows 10 while uploading a JSONL input file to Shopify with the request values provided by the response of the stagedUploadsCreate mutation:
curl --location --request POST ‘https://shopify-staged-uploads.storage.googleapis.com/’ --form ‘key=“REMOVED”’ --form ‘x-goog-credential=“REMOVED”’ --form ‘x-goog-algorithm=“GOOG4-RSA-SHA256”’ --form ‘x-goog-date=“20230515T011647Z”’ --form ‘x-goog-signature=“REMOVED”’ --form ‘policy=“REMOVED”’ --form ‘acl=“private”’ --form ‘Content-Type=“text/jsonl”’ --form ‘success_action_status=“201”’ --form [email removed]
The following response is received, instead of a response message with no error.
<?xml version='1.0' encoding='UTF-8'?>RequestTimeTooSkewedThe difference between the request time and the server's time is too large.2023-05-14T18:16:47-07:00