tyson-swetnam / porder

Simple CLI for Planet ordersV2 API
https://tyson-swetnam.github.io/porder/
Apache License 2.0
48 stars 12 forks source link

Issues with MultiPolygon AOI and Order Command #52

Open dketterer opened 2 years ago

dketterer commented 2 years ago

Hey there,

I'm doing orders with MultiPolygon AOI and ran into the following problem:

the JSON object must be str, bytes or bytearray, not dict
Bad Request ...

I think the issue is here and here.

The assumption is that aoi_resp is a string. But if you look and multipoly() it can only return a dict or list or other Python data structure. I removed the json.loads(....) functions and it works.