msgraph-sdk-php
msgraph-sdk-php copied to clipboard
Exception with code ErrorInvalidRecipients
SDK_VERSION is 1.13.0
I am getting exception:
Exception: Client error: `POST https://graph.microsoft.com/v1.0/users/{emailaddress}/calendar/events` resulted in a `400 Bad Request` response:
{
"error": {
"code": "ErrorInvalidRecipients",
"message": "At least one recipient isn't valid.",
The sent data is:
{
"subject": "Testing",
"start": {
"dateTime": "2020-03-20T10:00",
"timeZone": "Europe\/Stockholm"
},
"end": {
"dateTime": "2020-03-20T10:30",
"timeZone": "Europe\/Stockholm"
},
"attendees": [
{
"emailAddress": {
"address": "{another_emailaddress}"
}
}
]
}
The odd thing is that it still is creating the event correctly and if I run this same thing from Graph Explorer it works and returns Status code 201.
It also works if the attendee is the same emailaddress as in the url.
Is this something I can expect someone to look into? Or should a do a special solution for this on my own?
Works in latest v1 release. Also works in v2 preview