Giter Site home page Giter Site logo

Comments (7)

AndyHaas avatar AndyHaas commented on May 23, 2024

So doing further digging, if you look the class AccountPath.CallQueuesPath.BulkAssignPath() you will see there is a Post with EditGroupRequest
`public class BulkAssignPath : PathSegment
{
protected override string Segment { get; }

    public Task<GlipGroupInfo> Post();
    public Task<GlipGroupInfo> Post(object parameters);
    public Task<GlipGroupInfo> Post(EditGroupRequest parameters);
}`

But the EditGroupRequest has the incorrect fields inside. What it has
`public class EditGroupRequest
{
public EditGroupRequest();

    public string[] addedPersonIds { get; set; }
    public string[] addedPersonEmails { get; set; }
    public string[] removedPersonIds { get; set; }
}`

what it should be based on the API Reference
`public class EditGroupRequest
{
public EditGroupRequest();

    public string[] addedExtensionIds { get; set; }
    public string[] removedExtensionIds { get; set; }
}`

from ringcentral-csharp-client.

tylerlong avatar tylerlong commented on May 23, 2024

Hi @AndyHaas whenever there is an exception caused by server, catch it and print the response message from server: https://github.com/ringcentral/ringcentral-csharp-client#exception-handling

catch (FlurlHttpException fhe)
{
    string errorMessage = fhe.GetResponseString();
    Console.WriteLine(errorMessage);

from ringcentral-csharp-client.

tylerlong avatar tylerlong commented on May 23, 2024

what it should be based on the API Reference

Which API reference do you mean? Send me the link

Please check the error message first. Mostly like you will know how to solve the issue after reading error message.

from ringcentral-csharp-client.

AndyHaas avatar AndyHaas commented on May 23, 2024

@tylerlong here is the exception message. Sorry about not including this
Flurl.Http.FlurlHttpException: Call failed with status code 400 (Bad Request): POST https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/call-queues/210164004/bulk-assign at Flurl.Http.FlurlRequest.<HandleExceptionAsync>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RingCentral.RestClient.<Post>d__91.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at RingCentralAPI.Controllers.CallQueueMemberController.<Post>d__0.MoveNext() in C:\Enterprise\Internal\RingCentral\Relese 3.1\RingCentralAPI\RingCentralAPI\Controllers\CallQueueMemberController.cs:line 71

from ringcentral-csharp-client.

AndyHaas avatar AndyHaas commented on May 23, 2024

what it should be based on the API Reference

Which API reference do you mean? Send me the link

Please check the error message first. Mostly like you will know how to solve the issue after reading error message.

@tylerlong
Here is the API Reference I was mentioning

RingCentral API Reference https://developer.ringcentral.com/api-reference#Account-Provisioning-updateCallQueueGroup

from ringcentral-csharp-client.

tylerlong avatar tylerlong commented on May 23, 2024

@AndyHaas stacktrace is useless. Print the error message please:

catch (FlurlHttpException fhe)
{
    string errorMessage = fhe.GetResponseString();
    Console.WriteLine(errorMessage);

from ringcentral-csharp-client.

tylerlong avatar tylerlong commented on May 23, 2024

We do not maintain this SDK any more. Every user should use RingCentral.NET

from ringcentral-csharp-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.