microsoftgraph / microsoftgraph/msgraph-beta-sdk-php
Cannot request events delta without startDateTime
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 13
- Forks
- 8
- Avg merge
- 14h 58m
- Merged PRs (30d)
- 3
Description
Describe the bug
Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.
Expected behavior
When performing a normal call without any optional param to get a full delta, no error should append.
How to reproduce
$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
new DeltaRequestBuilderGetRequestConfiguration([
'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
])
)
->wait()
SDK Version
2.8.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
{
"error": {
"code": "ErrorInvalidParameter",
"message": "The value '' of parameter 'StartDateTime' is invalid."
}
}
Configuration
No response
Other information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php and compare its template URL with the Event delta documentation linked in the issue. Reproduce the calendar delta request without startDateTime; done means the request succeeds without an invalid StartDateTime error while requests that provide the parameter still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100