python requests get from API and post to another API and remote u'

Pankaj Jangid pankaj.jangid at gmail.com
Wed Aug 21 00:37:28 EDT 2019


Noah <noah-list at enabled.com> writes:

> I place a get request and the response from the API is "{'id': 32,
> 'description': u'Firewall Outside', 'address': u'10.10.10.230/30'}"
>
> I then take that information and attempt post it to the other API.
> The data is not accepted and the result is an HTTP 400 code.
>
> I tried posting with postman and still rejected.
>
> I can post to the second API if I change the data to look like this:
> {"id": 32, "description": "Firewall Outside", "address":
> "10.10.10.230/30"}

This could be python version issue at your end. But I am thinking why
this is getting rejected by Postman as well. Try with vREST.

-- 
Pankaj Jangid



More information about the Python-list mailing list