Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Issue with version 2 requests #54

Open
StefanSiebert opened this issue May 22, 2018 · 1 comment
Open

Issue with version 2 requests #54

StefanSiebert opened this issue May 22, 2018 · 1 comment
Assignees

Comments

@StefanSiebert
Copy link

Hello,

starting with version 1.0.7, http client caching was added and the default version string has changed from empty to 2.0
This will bring up the following exception for version 2 requests like adding a contact to a group (AddContactToGroup).

Microsoft.Skype.UCWA.Models.MethodNotAllowedException: The request isn't supported.
at async Task Microsoft.Skype.UCWA.Services.HttpService.HandleError(HttpResponseMessage response)
at async Task Microsoft.Skype.UCWA.Services.HttpService.ExecuteHttpCallAndRetry(Func<CancellationToken, Task> httpRequest, Func<HttpResponseMessage, T> deserializationHandler, CancellationToken cancellationToken)
at async Task Microsoft.Skype.UCWA.Services.HttpService.Post(string uri, object body, CancellationToken cancellationToken, string version, bool anonymous)
at async Task Microsoft.Skype.UCWA.UCWAClient.AddContactToGroup(string sip, string groupId, CancellationToken cancellationToken)

I have found out that the version string 2.0 has to be changed to 2 or it will be ignored. However, version 1 requests won't work then.
Changing the version back to an empty string and splitting the client caching also by version fixed the problem for me.

Thanks,

Stefan

@kenakamu
Copy link
Owner

kenakamu commented Jun 5, 2018

Great. Could you craft PR for this one, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants