fix: authorize upload error on create job endpoint#1642
Conversation
|
✅ Rule acceptance tests passed. |
This reverts commit 36712f4.
| storage.signUrl( | ||
| blobInfo, 1, TimeUnit.HOURS, Storage.SignUrlOption.httpMethod(HttpMethod.POST)); | ||
| try (WriteChannel writer = storage.writer(signedURL)) { | ||
| OutputStream outputStream = Channels.newOutputStream(writer); |
There was a problem hiding this comment.
Using the Channels output stream reduces the memory footprint by avoiding loading the full file in memory.
|
✅ Rule acceptance tests passed. |
Summary:
When utilizing the feed URL https://www.maricopa-az.gov/home/showpublisheddocument/6491/638307291320330000, an "Error authorizing upload" occurs. Upon attempting to save the file to GCP for validation, it was observed that the HTTP request lacked a user-agent, leading to rejection by the producer in this specific instance.
This is a missing fix from #1633.
Fixes #1632
Please make sure these boxes are checked before submitting your pull request - thanks!
gradle testto make sure you didn't break anything