bensteUEM / ChurchToolsAPI

Collection of Python files to use the API for ChurchTools
6 stars 4 forks source link

Communi API is experiencing issue on loading event #40

Closed bensteUEM closed 1 year ago

bensteUEM commented 1 year ago
2023-02-20 18:29:14,552 urllib3.connectionpool DEBUG    https://elkw1610.krz.tools:443 "GET /api/events?from=2023-02-06&to=2023-02-20 HTTP/1.1" 200 None
2023-02-20 18:29:14,557 root       DEBUG    First response of Events successful {'data': [{'id': 2469, 'guid': '5EB6E113-2638-4FEB-
[...]
2023-02-20 18:29:14,650 urllib3.connectionpool DEBUG    https://elkw1610.krz.tools:443 "GET /api/events/%7B'id':%202469,%20'guid':%20'5EB6E113-2638-4FEB-9BCA-E40BCC22AA07',%20'name':%20'Kaminabend',%20'description':%20'',%20'appointmentId':%20326169,%20'startDate':%20'2023-02-09T18:30:00Z',%20'endDate':%20'2023-02-09T21:00:00Z',%20'chatStatus':%20'NOT_STARTED',%20'isCanceled':%20False,%20'permissions':%20%7B'useChat':%20False,%20'startChat':%20False%7D,%20'calendar':%20%7B'title':%20'Sonstige%20Veranstaltung',%20'domainType':%20'calendar',%20'domainIdentifier':%20'1',%20'apiUrl':%20'',%20'frontendUrl':%20'',%20'imageUrl':%20'',%20'icon':%20'calendar',%20'domainAttributes':%20%7B'campusName':%20None%7D%7D,%20'eventFiles':%20%5B%5D%7D HTTP/1.1" 400 None
2023-02-20 18:29:14,653 root       WARNING  Something went wrong fetching events: 400

This looks like a request is made using the event content instead of an ID

bensteUEM commented 1 year ago

Not a bug ... issue was in Communi implementation returning whole event instead of event_id and using it for requests