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
Remove resources from /appguid/bits body params if resources values is empty #810
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/144145547 The labels on this github issue will be updated when the story is started. |
Alternatively, sometimes |
Making sure I understand, your issue is that your python HTTP library is unable to send a file and extra data as part of the same body? Or more a general observation that the API feels a bit awkward? If the former, does something like this work? If the latter, we're working on adding new v3 endpoints now and this is useful feedback on the API design. cc @zrob |
I got around it with this:
The entire But I think my argument about making |
We're glad to hear you were able to resolve your issue. |
Using
python requests library
. A put payload including form data as part of files data result inToo many values to unpack
using
python requests library
. A put payload including files data withoutresources
form data raised{"code": 160001, "error_code": "CF-AppBitsUploadInvalid", "description": "The app upload is invalid: missing :resources"}
from CFIt'll be nice if
/appguid/bits
handler can separate the sent data between a payload that contains the binary and a payload that contains form data. For example:Instead of:
data = {'application': filepath, 'resources': []}
I think this is more appropriate for http client libraries:
file = {'application': filepath}
data = {'resources': []}
The text was updated successfully, but these errors were encountered: