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

FreeBusy Bad Request error #325

Open
Savvasg35 opened this issue Jul 26, 2023 · 4 comments
Open

FreeBusy Bad Request error #325

Savvasg35 opened this issue Jul 26, 2023 · 4 comments

Comments

@Savvasg35
Copy link

Hello 👋

I am trying to run the freebusy_request method on a calendar, but I am getting this error all the time

ReportError at '400 Bad Request
b''', reason no reason

This is how my code look like

with caldav.DAVClient(
        url=caldav_url,
        username=username,
        password=password,
    ) as client:

my_principal = client.principal()

my_calendar = my_principal.calendar(name="My Calendar")

start = datetime.today()
end = datetime.today() + timedelta(days=1)

free_busy = my_calendar.freebusy_request(start=start, end=end)

Any idea what I am doing wrong here?

@tobixen
Copy link
Member

tobixen commented Jul 26, 2023

Most likely the server does not support freebusy. What server are you using?

@Savvasg35
Copy link
Author

Ah that's helpful, I am using the icloud servers https://caldav.icloud.com

@tobixen
Copy link
Member

tobixen commented Jul 26, 2023

Not supported in icloud.

I think that there is no official support for the caldav protocol for icloud, even though it's possible to access events using the caldav protocol.

RFC6638 specifies a different way to do freebusy requests, but if I remember correct someone tested that and did not get it to work.

@Savvasg35
Copy link
Author

Ah I see 🤔 I am trying to create an api to sync icloud calendars, and caldav seems to be the only option at the moment. I think for now I can live without the free/busy functionality

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