-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 test
to make sure you didn't break anything