-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Uploading assets with a GitHub release fails in set_github_release
#9922
Comments
Properly validates that either a `server_url` and `path` are provided, or a full `url`. This resolves Issue fastlane#9922.
Thanks for raising the issue @provTheodoreNewell ! We would be happy to review that PR ! 🚀 |
We're still experiencing a problem with the new Github actions (Fastlane 2.50.1) and it seems to be related to content-types:
Edit Forgot to mention, our |
I'm experiencing the same issue using Fastlane 2.50.1 |
i got this error the actions doesnt provide |
I noticed the regression too. It looks like the "application/zip" content type header should always be used in the `uploa_file` function in `set_github_release`, not just for paths that include ".zip" to meet the previous behavior.
I will make a PR with the fix later this morning if no one beats me too it :)
On Aug 4, 2017, at 4:18 AM, Ganjar Panji Manggala <notifications@github.com<mailto:notifications@github.com>> wrote:
i got this error
GitHub responded with 400:{"message":"Invalid Content-Type: ''","request_id":"DDD5:1BAFB:D6BDB6:E7924C:59841FEC"}`
@JohnEstropia<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_johnestropia&d=DwMCaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=_-85IUQj7hxsyqtTXBqqx-N-2drhDGG9LpbNKN2S6Rg&m=o8VzKB5tra2TRrxQLQHcXK5BrqbjkWpGHnra5OVChGE&s=iNB0x8j0TxkvAZ8cYuH6laABAfol-PC9h_p2D6k_HMM&e=> how you fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_fastlane_fastlane_issues_9922-23issuecomment-2D320224297&d=DwMCaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=_-85IUQj7hxsyqtTXBqqx-N-2drhDGG9LpbNKN2S6Rg&m=o8VzKB5tra2TRrxQLQHcXK5BrqbjkWpGHnra5OVChGE&s=tSJ5iF0H5lo8VZePNNmo2u6egw3vJfqYNIWamc7R5-c&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AcNXAbNU8vsE9xQ213VLn8HJq-5F4Zzb8Cks5sUv4RgaJpZM4OqMO6&d=DwMCaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=_-85IUQj7hxsyqtTXBqqx-N-2drhDGG9LpbNKN2S6Rg&m=o8VzKB5tra2TRrxQLQHcXK5BrqbjkWpGHnra5OVChGE&s=1KxdXSKnkdOQelgZ_AhC_hUY7yrMPxNJtu_5dv75HRM&e=>.
…________________________________
This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.
|
* Fix incorrect GitHub url parameter validation Properly validates that either a `server_url` and `path` are provided, or a full `url`. This resolves Issue fastlane#9922. * Add tests to verify fastlane#9922
New Issue Checklist
Issue Description
Using the
set_github_release
action in Fastlane 2.50.0 with a valid array of paths for theupload_assets
and relying on the default value forgit_url
(https://api.github.com) fails during the upload step, printing the error:This seems to be a regression introduced with the new
github_api
action at #8971.Proposed Solution
In
github_api.rb::construct_url
, valid combinations of parameters should be either:server_url
in conjunction withpath
that can be joined to create a full urlor
url
as the full urlI will prepare a pull request with this solution.
Fastlane Version
fastlane gems
The text was updated successfully, but these errors were encountered: