On Jul 9, 2015 12:50 PM, <[email protected]> wrote:

> I added the port and tested again. here is the error I get.
>
> ####################
>
> failed: [10.1.3.163] => (item=abcd_v3.0_Monthly_Master_20150701.ZIP) =>
> {"content": "", "content_length": "0", "failed": true, "item":
> "abcd_v3.0_Monthly_Master_20150701.ZIP", "redirected": false, "status": 500}
> msg: Status code was not [200]
> ...ignoring
>
> #################
>
> This is the task in the playbook
>
>   - name: Curl to post to xxxx
>       uri:
>         url: http://localhost:9004/api/v1.0/abcd?abcdZipFile={{ item }}
>         method: POST
>         status_code: 200
>       with_items: abcdUPLOAD.stdout_lines
>       register: status
>       ignore_errors: True
>     - debug: var=status
>
> Status code 500 is an internal server error which means the application
you're talking had a problem.  Might check the logs for the application to
see if it reported why it couldn't handle the request.

I also note that the filename that the uri module is trying to POST is
different from the filename in your curl.  That might be a clue as well.

-Toshio

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG9juEqF9e9JKY%2B8-FKXqM%2BWoxdJQcuv0z%2Br-EZDJW2rbFc2Gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to