Nel_Rap
(Nel Rap)
January 6, 2017, 2:16pm
1
Hallo everybody,
my Fritzbox Binding works fine (MAC, Callmonitor, Name, etc.). But my WANIP don’t show:
FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response.
But when I manually send this SOAP it was ok:
POST /igdupnp/control/WANIPConn1 HTTP/1.1
SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress
Authorization: ***** Hidden credentials *****
Content-type: text/xml; charset="utf-8"
Host: fritz.box:49443
Connection: close
User-Agent: XXXXX
Content-Length: 280
<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:GetExternalIPAddress xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>
Response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetExternalIPAddressResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewExternalIPAddress>xx.xxx.xxx.xx</NewExternalIPAddress>
</u:GetExternalIPAddressResponse>
</s:Body>
</s:Envelope>
Is this a bug of the binding?
Thanks,
Nils
semperor
(Semperor)
January 6, 2017, 4:24pm
2
Same here. I had a look at the AVM documentation, nothing changed.
Max_G
(Max G)
February 24, 2017, 2:11pm
3
Same here…
When I use the example code from FritzBox TR064 Binding
Text item=fboxWanIP
String fboxWanIP "FBox WAN IP [%s]" {fritzboxtr064="wanip"}
I get this error:
2017-02-25 00:02:22.580 [ERROR] [o.o.b.f.i.FritzboxTr064Binding] - FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>402</errorCode>
<errorDescription>Invalid Args</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Any ideas?
Same here. I think its related to the recent Fritz:OS update I did. Before everything was working smoothly but after updating the firmware the problems started. Might be a change in the UPnP reply the box sends which tr064 binding is not aware of. I filed github issue but no response yet. I deactivated the item to not have my log spammed.
1 Like
e36Alex
(Alexander)
May 11, 2017, 7:28pm
6
waitz_sebastian:
Fritz
same here, too. are there any news about it? or is there someone, who has no troubles with the binding actually?
Still working for me. Same box as you and latest firmware.
e36Alex
(Alexander)
May 11, 2017, 9:24pm
9
thank you for your reply. i think i gave up too early! i tried it again and startet to write the items-file completely new and now it works again. i think i had an mistake in the “maconline” items…
Bredmich
(Michael)
June 5, 2017, 1:12pm
10
Hi!
I got the same problem and can´t find any solution.
Item:
String fbWAN "IP-Adresse: [%s]" <fritzbox> {fritzboxtr064="wanip"}
Sitemap:
Text item=fbWAN
Error:
2017-06-05 15:11:52.161 [ERROR] [o.o.b.f.i.FritzboxTr064Binding] - FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Cheers
Bredmich
(Michael)
August 22, 2017, 3:50pm
11
Does no one want to fix this binding?
Bredmich
(Michael)
September 6, 2017, 12:48pm
12
There´s a fix for everyone who can´t obtain their external IP address when not using the internal DSL modem.
The FritzBox has two values for the external IP address.
WANPPPConnection = internal modem
WANIPConnection = external modem
The fixed binding has two values for the WAN-IP
wanip = WANPPPConnection
externalWanip = WANIPConnection
For me this fix works fine and i´m finally able to read my external IP address.
Cheers
Michael
sandervd
(Sander Van Dijk)
November 9, 2017, 4:20pm
13
Argh, same here, another one with typo in the maconline statement in the items file. Pasted the MAC address with colons but it requires dashes.