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

Migrating from 1.96 to 2.4 booking service issue #1504

Closed
shirofuji opened this issue Apr 11, 2024 · 1 comment · Fixed by microsoft/kiota-serialization-json-php#68 or microsoft/kiota-serialization-text-php#54
Assignees

Comments

@shirofuji
Copy link

shirofuji commented Apr 11, 2024

Updating from 2.4 I'm trying to get the booking service using the following basic code:

$services = $client->solutions()->bookingBusinesses()->byBookingBusinessId($businessId)->services()->get()->wait();

The request seem to work but the parsing in the model seem to produce an issue:

Uncaught Exception: Unknown or bad format (-PT15M) in C:\xampp74\htdocs\wp\wordpress\wp-content\plugins\CustomPlugin\vendor\microsoft\kiota-serialization-json\src\JsonParseNode.php:285 Stack trace: #0 C:\xampp74\htdocs\wp\wordpress\wp-content\plugins\CustomPlugin\vendor\microsoft\kiota-serialization-json\src\JsonParseNode.php(285): DateInterval->__construct('-PT15M') #1 C:\xampp74\htdocs\wp\wordpress\wp-content\plugins\CustomPlugin\vendor\microsoft\microsoft-graph\src\Generated\Models\BookingReminder.php(71): Microsoft\Kiota\Serialization\Json\JsonParseNode->getDateIntervalValue()
@SilasKenneth
Copy link
Member

Hi @shirofuji , Thank you for trying the SDK. I am very sorry for the issue you are facing. I am able to reproduce and will be issuing a fix as soon as possible.

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