You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
piping json to post on API endpoint on akamai cause the following error
http: error: AttributeError: '_io.BufferedReader' object has no attribute 'len'
To Reproduce
Steps to reproduce the behavior:
run podman run --pull=always --rm -it -v ~/.edgerc:/root/.edgerc -v $PWD:/workdir:rw docker.io/akamai/shell
run http -v --auth-type=edgegrid -a default: POST :/identity-management/v3/user-admin/ui-identities < pay load.json
See error http: error: AttributeError: '_io.BufferedReader' object has no attribute 'len'
Expected behavior
POST data on the API endpoint and see an answer
Screenshots
Not Applicable
Please complete the following information:
OS: linux
Version : 3.2.2
Additional context
Playload content does not seem relevant for the issue, suspect the issue is caused by edgegrid authentication trying to read the payload for calculating the request signature.
The text was updated successfully, but these errors were encountered:
In the meantime would you kindly recommend any workaround for posting payload to api endpoint. Currently we wrote a python script in order to do it, but we would appreciate to use any Akamai recommended solution.
Hello @dvhh
It seems that the issue is mainly about using the < operator. So something like cat payload.json | http -v --auth-type=edgegrid -a default: POST :/identity-management/v3/user-admin/ui-identities should work. Please let us know if that is sufficient workaround for you until we fix the <.
Describe the bug
piping json to post on API endpoint on akamai cause the following error
To Reproduce
Steps to reproduce the behavior:
podman run --pull=always --rm -it -v ~/.edgerc:/root/.edgerc -v $PWD:/workdir:rw docker.io/akamai/shell
http -v --auth-type=edgegrid -a default: POST :/identity-management/v3/user-admin/ui-identities < pay load.json
http: error: AttributeError: '_io.BufferedReader' object has no attribute 'len'
Expected behavior
POST data on the API endpoint and see an answer
Screenshots
Not Applicable
Please complete the following information:
Additional context
Playload content does not seem relevant for the issue, suspect the issue is caused by edgegrid authentication trying to read the payload for calculating the request signature.
The text was updated successfully, but these errors were encountered: