Giter VIP home page Giter VIP logo

Comments (4)

inflames2k avatar inflames2k commented on June 10, 2024

Am I understanding this correct? The connection is terminated but there is also thrown an internal server error?

I will check and fix it if I can find the issue.

from ps.fritzbox.api.

Stephanowicz avatar Stephanowicz commented on June 10, 2024

Yep - recently I found that "/igdupnp/control/WANIPConn1" (igdconnSCPD.xml) also has these commands, and they don't throw an error...


namespace PS.FritzBox.API
{
    /// <summary>
    /// class for getting informations about the wan ppp connection
    /// </summary>
    public class WANIPConnectionClient1 : FritzTR64Client
    {
        public WANIPConnectionClient1(string url, int timeout) : base(url, timeout)
        {
        }

        /// <summary>
        /// Sets the control url
        /// </summary>
        protected override string ControlUrl => "/igdupnp/control/WANIPConn1"; //igdconnSCPD.xml

        /// <summary>
        /// Sets the request namespace
        /// </summary>                                 
        protected override string RequestNameSpace => "urn:schemas-upnp-org:service:WANIPConnection:1";

        /// <summary>
        /// Method to force the termination of the ppp connection
        /// </summary>
        public void ForceTermination()
        {
            try
            {
                this.Invoke("ForceTermination", null);
            }
            catch (Exception)
            {

                ;
            }
        }

        /// <summary>
        /// Method to request the termination of the ppp connection
        /// </summary>
        public void RequestTermination()
        {
            try
            {
                this.Invoke("RequestTermination", null);
            }
            catch (Exception)
            {

                ;
            }
        }
        /// <summary>
        /// Method to request a ppp connection
        /// </summary>
        public async void RequestConnection()
        {
            XDocument document = await this.Invoke("RequestConnection", null);
        }
    }
}

Cheers, Stephan

from ps.fritzbox.api.

inflames2k avatar inflames2k commented on June 10, 2024

I searched for informations on this issue and only found that the ForceTermination-call and the RequestConnection-call from WANPPPConnection are throwing an internal server error sometimes. But the calls are executed if no other error occures.

from ps.fritzbox.api.

inflames2k avatar inflames2k commented on June 10, 2024

During some tests and changes to the API I figured out the reason for the internal server error. On calling force termination the device throws an error because of the disconnect progress. - Something may be wrong implemented on the service. So there is nothing I can do to fix this.

from ps.fritzbox.api.

Related Issues (18)

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.