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

Internal Error when making Calls to the API #9

Open
juergenmnich opened this issue Feb 10, 2022 · 0 comments
Open

Internal Error when making Calls to the API #9

juergenmnich opened this issue Feb 10, 2022 · 0 comments

Comments

@juergenmnich
Copy link

with this lines of code

   private void button1_Click(object sender, EventArgs e)
    {
        ProxySettings proxySettings = new ProxySettings();
        Client myClient = new Client("http://coocgnido001.coo.local/src/jsonrpc.php", "<myapikey>", "en", proxySettings);
        myClient.Username = "admin";
        myClient.Password = "<mypwd>";
        idoit idoit = new idoit(myClient);

        Version response = new Version();
        response = idoit.Version();

**I get the following error. what do I do wrong? **

System.AggregateException
HResult=0x80131500
Nachricht = Mindestens ein Fehler ist aufgetreten.
Quelle = mscorlib
Stapelüberwachung:
bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
bei Idoit.API.Client.Idoit.Idoit.Version()
bei iDoitClient.Form1.button1_Click(Object sender, EventArgs e) in C:\Users\pkv00014\OneDrive - Verband der Privaten Krankenversicherung e.V\Desktop\iDoitClient\iDoitClient\Form1.cs: Zeile33
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(Form mainForm)
bei iDoitClient.Program.Main() in C:\Users\pkv00014\OneDrive - Verband der Privaten Krankenversicherung e.V\Desktop\iDoitClient\iDoitClient\Program.cs: Zeile19

Innere Ausnahme 1:
AggregateException: Mindestens ein Fehler ist aufgetreten.

Innere Ausnahme 2:
JsonRpcClientException: The service response is invalid

Innere Ausnahme 3:
JsonRpcSerializationException: The response error code is invalid

Innere Ausnahme 4:
ArgumentOutOfRangeException: The specified error code is outside the allowable range
Parametername: code
Der tatsächliche Wert war -32604.

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

No branches or pull requests

1 participant