Bulk Operation URL to download the data

Topic summary

Issue Identified:
A developer encountered problems downloading bulk operation data from Shopify. After receiving a completed webhook status and requesting the download URL, attempts to access it via browser or .NET HttpClient failed with a 400 Bad Request error.

Root Cause:
The URL returned by Shopify in the webhook response (data.node.url) was malformed, containing spaces and line breaks that prevented proper access.

Resolution:
User ‘agis’ solved the issue by cleaning the URL using JavaScript:

var cleanedUrl = url.replace(/\n|\r|\s/g,'');

Removing the whitespace and line break characters from the URL string allowed successful data download. The discussion appears resolved with this workaround.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

Hi,

I’m checking if anybody has an idea ?