Skip to content

Planet SDK v2 - Subscriptions: Unable to Cancel/Describe the subscription with ID #657

Closed
@rajashekarmamidala

Description

@rajashekarmamidala

sub_create.json.txt
Environment: planet, version 2.0a1

Test Steps:

  1. Create a subscription as below

C:\planet_cli2\planet-client-python>planet subscriptions create sub_create.json

{"name": "QE Simple-new format-Skysatscene-PCLi", "source": {"type": "catalog", "parameters": {"asset_types": ["ortho_analytic"], "item_types": ["SkySatScene"], "geometry": {"coordinates": [[[-122.78320312499999, 37.56199695314352], [-121.95373535156249, 37.56199695314352], [-121.95373535156249, 38.16911413556086], [-122.78320312499999, 38.16911413556086], [-122.78320312499999, 37.56199695314352]]], "type": "Polygon"}, "start_time": "2022-07-20T15:57:05Z", "end_time": "2022-07-31T23:55:55Z"}}, "delivery": {"type": "google_cloud_storage", "parameters": {"bucket": "subscriptions_qe", "credentials": "<REDACTED>"}}, "created": "2022-07-20T15:51:17.274266Z", "_links": {"_self": "https://api.planet.com/subscriptions/v1/91125d62-f0cd-44da-9143-06c50ed2aadb"}, "status": "preparing", "id": "91125d62-f0cd-44da-9143-06c50ed2aadb", "updated": "2022-07-20T15:51:17.274266Z"}
2. Now try to Cancel/Describe the subscription with ID which is created above

planet subscriptions describe 91125d62-f0cd-44da-9143-06c50ed2aadb

planet subscriptions cancel 91125d62-f0cd-44da-9143-06c50ed2aadb
Expected: It should Cancel/Describe the subscription

Actual: It is displaying the error as below

Error: {"error":{"reason":"Request failed schema validation","details":["parameter 'subscriptionId' in path has an error: JSON string doesn't match the format 'uuid (regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)' | "]}}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions