calendar icon indicating copy to clipboard operation
calendar copied to clipboard

When duration greater than incremtent: "Could not book the appointment. Please try again later or contact the organizer."

Open bentuna opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. create appointment where the duration is greater than the increment, i.e. duration: 90 min, increment: 60 min
  2. try to book slots
  3. see how it works for some slots, and others show the error

Expected behavior

All available slots are bookable.

Actual behaviour

Some available slots are not bookable, instead the error from the title of the issue is displayed:

  • in every second slot from the available slot list, when duration is double of increment
  • in all other cases where duration > increment So the error is present with every duration above 60 minutes (because currently incremtent cannot be set greater than 60 min)

Calendar app version

4.6.5

CalDAV-clients used

No response

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

28.0.2

Updated from an older installed version or fresh install

None

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

bentuna avatar Feb 22 '24 07:02 bentuna

This might happen in some other cases as well. Trying to figure it out on one instance.

small1 avatar Feb 24 '24 09:02 small1

From the log file when trying to book an appointment. It is available to book and nothing else is on that slot.

{"reqId":"4aCaCYEFfOeLtuLPPink","level":0,"time":"2024-02-24T09:17:26+00:00","remoteAddr":"*.*.*.*","user":"--","app":"calendar","method":"POST","url":"/apps/calendar/appointment/1/book","message":"Appointment config JmzM97mzCmxd has 1 intervals that result in 0 possible slots. 0 slots remain after the daily limit. 0 available slots remain after conflict checking.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"calendar"}}
{"reqId":"4aCaCYEFfOeLtuLPPink","level":2,"time":"2024-02-24T09:17:26+00:00","remoteAddr":"*.*.*.*","user":"--","app":"calendar","method":"POST","url":"/apps/calendar/appointment/1/book","message":"No slot available for start: 1709109000, end: 1709111700, config id: 1","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.2.5","exception":{"Exception":"OCA\\Calendar\\Exception\\NoSlotFoundException","Message":"Could not find slot for booking","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/calendar/lib/Controller/BookingController.php","line":195,"function":"book","class":"OCA\\Calendar\\Service\\Appointments\\BookingService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"bookSlot","class":"OCA\\Calendar\\Controller\\BookingController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/calendar/lib/Service/Appointments/BookingService.php","Line":164,"message":"No slot available for start: 1709109000, end: 1709111700, config id: 1","exception":{},"CustomMessage":"No slot available for start: 1709109000, end: 1709111700, config id: 1"}}

small1 avatar Feb 24 '24 09:02 small1

Screenshot from 2024-02-24 10-30-33

Settings for my appointment configuration.

small1 avatar Feb 24 '24 09:02 small1

Changing the config a bit and it seems like its working, Will do some more tests

small1 avatar Feb 24 '24 09:02 small1