While uploading jsonl file to Shopify s3 I’m getting bad request error.
Function used for uploading jsonl file to s3
private void uploadStagingFileToShopifyS3(JsonNode jsonResponse, String outputFileName) {
Map
While uploading jsonl file to Shopify s3 I’m getting bad request error.
Function used for uploading jsonl file to s3
private void uploadStagingFileToShopifyS3(JsonNode jsonResponse, String outputFileName) {
Map
Hey @swastik ,
To confirm here, you aren’t getting an errors when making the stagedUploadsCreate request to using the Admin API, but rather for the proceeding POST request to [https://shopify.s3.amazonaws.com](https://shopify.s3.amazonaws.com) to upload the staging file?
Just to be sure, I successfully executed a few requests manually using cURL and our docs, but those didn’t run into errors in my test environment.
I am not familiar with your shared implementation, but wanted to ask a few questions:
Can you confirm if the app is outputting raw data that mirrors how the multipart form is structured in our example docs?
Do you get these same error when testing through the process manually, for example using a desktop http or API client?
If yes to both, and you are able to replicate this behavior, please utilize verbose logging through your http client and pass on any details pertaining to time frame, frequency, etc. From there I can take a closer look, and pass on best next steps or insights moving forward.
I will keep an eye out here - Cheers!
This issue is resolved.
Due to some reason my file operation was failing and My program was trying to upload empty file(File with no contents). That’s why I was getting Bad Request error
Thank you for considering my question.