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

Problem with accept invite in calendar #399

Open
hello-tty opened this issue Jun 3, 2024 · 5 comments
Open

Problem with accept invite in calendar #399

hello-tty opened this issue Jun 3, 2024 · 5 comments

Comments

@hello-tty
Copy link

Hello. I use a script to automatically accept calendar appointments, but recently it stopped working for me. Tell me what could be the problem?

Example code I'm using

import requests
import caldav
username = 'login'
password = 'password'

room_url = 'https://calendar_address/calendars'
client = caldav.DAVClient(
    url=room_url,
    auth=(username, password)
)

principal = client.principal()
calendars = principal.calendars()
my_calendar = principal.calendar(name='Common')

events = my_calendar.events()
for event in events:
    if 'test' in event.data:
        print(event.url)
        my_calendar.event_by_url(event.url).accept_invite(my_calendar)

The error I get
image

@hello-tty hello-tty changed the title problem with accept invite Problem with accept invite in calendar Jun 3, 2024
@tobixen
Copy link
Member

tobixen commented Jun 3, 2024

The accept_invite-method is under-tested, I started working on this functionality and then it got deprioritized, sorry for that.

It seems like your calendar server does not want to yield your address. Did this work earlier, and now it has stopped working, you said?

Is it by any chance possible for you to set up a testing account at your calendar server that I could use for test purposes?

@tobixen
Copy link
Member

tobixen commented Jun 7, 2024

Sorry that things are taking time.

There were quite some of the tests failing towards your server, so I've created #401 and I'll look a bit into that before working with this. (#400 is also relevant).

@tobixen
Copy link
Member

tobixen commented Jun 9, 2024

I have reproduced the error in a test by now.

@tobixen
Copy link
Member

tobixen commented Jun 18, 2024

Sorry for the slow progress here. I do have a plan for how to solve this, but it seems like I'm overbooked for the rest of this week at least ...

@hello-tty
Copy link
Author

Hello! Well, we'll wait.
Do you have any idea how long it will take for the problem to be resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants