Comments (4)
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.
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.
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.
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)
- UInt32 Overflow in WANCommonInterfaceConfigClient HOT 4
- crash in PS.FritzBox.API.CMD / DiscoverAsync HOT 2
- Erweiterung von 5Ghz und Gäste Wlan HOT 3
- Fritz OS 7.10 no Reboot HOT 5
- WANDSLInterfaceConfig missing? HOT 6
- Consider Pdb-symbols-package creation and publication to nuget.org HOT 3
- Implement missing device clients
- Port & Pathname changed? HOT 3
- Optimize FritzDevice HOT 1
- GetSpecificHostEntryAsync fails with SoapFaultException HOT 3
- GetSpecificHostEntryAsync in HostsClient.cs missing SoapRequestParameter HOT 1
- Exception upon Login HOT 10
- BaseUrl is null at DeviceFactory.CreateDeviceAsync (IPAddress) HOT 2
- Is the VOIP/MyFritz service available? HOT 6
- Typos in WANPPPConnectionClient.cs HOT 2
- Answering machine TAM? HOT 1
- System.XML.XMLException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps.fritzbox.api.