Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a new event when passing in an eventId. #121

Closed
jeffscaturro-aka opened this issue Oct 16, 2019 · 4 comments
Closed

Cannot create a new event when passing in an eventId. #121

jeffscaturro-aka opened this issue Oct 16, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jeffscaturro-aka
Copy link

jeffscaturro-aka commented Oct 16, 2019

What

When trying to create a new event (createOrUpdateEvent) and specifying an eventId, I'm receiving the following error:

[599] Device calendar plugin ran into an issue. Platform specific exception [404], with message :"The event with the ID 93861039 could not be found", has been thrown.

Environment

Testing on a physical iPhone X running 13.2 and an iOS Simulator (iPhone 11 Pro Max - 13.0).

I could not reproduce this issue on Android.

Steps to Reproduce

Try to create a new event on iOS and specify an eventId.

Miscellaneous

I am guessing that we should not be allowed to create an event with an eventId and instead that's used to query for one on each platform. However, if that's the case, we need to update the documentation to avoid confusion on that.

@Rahul1703
Copy link

eventid is a read-only property when you will add into the calendar you will receive eventid.

@jeffscaturro-aka
Copy link
Author

Sounds good - sorry for the delayed reply, lost track of this one.

Feel free to close this out, or mark it as an enhancement for documentation purposes to make that more clear to the consumer.

@bhl09 bhl09 self-assigned this Jan 21, 2020
@bhl09 bhl09 added the enhancement New feature or request label Jan 21, 2020
@bhl09 bhl09 added this to To do in Device_Calendar plugin v3.1.0 via automation Jan 21, 2020
@bhl09 bhl09 moved this from To do to In progress in Device_Calendar plugin v3.1.0 Jan 21, 2020
@bhl09
Copy link
Contributor

bhl09 commented Jan 22, 2020

As @Rahul1703 said, the eventId field is a read-only variable so you won't be able to create an event with custom ID.

I've updated the property summary to present them as a read-only variable for now in #146 (Possibly assigning those kind of properties to only have a getter in future).

If you'd like to use a custom ID, I recommend to use the URL field (if you're not planning to use it, of course) added from v1.0.0+3.

@bhl09 bhl09 moved this from In progress to Resolved in Device_Calendar plugin v3.1.0 Jan 22, 2020
@jeffscaturro-aka
Copy link
Author

Thanks for the follow-up and info @Brett09, I appreciate it.

Device_Calendar plugin v3.1.0 automation moved this from Resolved to Done Jan 23, 2020
@codesxt codesxt mentioned this issue Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

3 participants