sharetribe / flex-cli

Flex CLI
https://www.sharetribe.com/docs/tutorials/getting-started-with-flex-cli/
Apache License 2.0
4 stars 1 forks source link

--before-ts not working? #102

Open jayenashar opened 3 weeks ago

jayenashar commented 3 weeks ago
jayen@eeyore:~$ flex-cli events --marketplace expertapplication-test --before-ts=2024-06-22
 › API call failed. Status: 400, reason: Invalid value.

1 jayen@eeyore:~$ flex-cli events --marketplace expertapplication-test --before-ts 2024-06-22
 › API call failed. Status: 400, reason: Invalid value.

1 jayen@eeyore:~$ flex-cli events --marketplace expertapplication-test --before-ts=2024-06-22T00:00.000Z
 › API call failed. Status: 400, reason: Invalid value.

it works without --before-ts and i believe i'm using the format specified in help events

rap1ds commented 3 weeks ago

(Related to https://github.com/sharetribe/flex-cli/issues/103)

I believe the reason for the error is that you can only query events that are not older than a week.

Does this work if you use --before-ts value less than a week ago?

There's certainly room for improvement in the error reason message.

jayenashar commented 3 weeks ago

yes it works with recent dates. i agree about the error message.