seydx / homebridge-fritz-platform

AiO Homebridge dynamic platform plugin for AVM hardware like Fritz!Box, Fritz!Repeater etc.
MIT License
223 stars 32 forks source link

Connection Error Fritz OS 7.29 unauthorized #254

Open Kragothius opened 2 years ago

Kragothius commented 2 years ago

Describe the bug Added New Device Fritz!Box 7530 with Fritz!OS 07.29 Homebridge v1.3.8 nodeJS v16.13.0 MacOs 12.0.1

To Reproduce Steps to reproduce the behavior:

  1. Add Device, Enter Credentials with Configured User Name and Password based on Fritz User.
  2. Save
  3. Restart Homebridge
  4. See error in Log

[FritzPlatform] Fritz7530 (dsl): An error occured during getting state! [FritzPlatform] Error: Unauthorized at Object.exports.request (/usr/local/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:78:21) at processTicksAndRejections (node:internal/process/task_queues:96:5) at exports.requestXml (/usr/local/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:230:20) at Service.execAction (/usr/local/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/service.js:133:20) at Handler.get (/usr/local/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:101:28) at Handler.poll (/usr/local/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:979:11) { title: 'Invalid Response', code: 401, soap: {}, url: 'https://username:password@FritzboxIP:49443/upnp/control/wanpppconn1' }

  1. I already checked the Network and User Configuration for TR064 Access > OK (other Apps can also Connect)
  2. Checked https://FritzboxIP:49443/upnp/control/wanpppconn1 > getting 404 Not Found > might be the Problem?
  3. Homebridge restarting loop

Desktop (please complete the following information):

Smartphone (please complete the following information):

Kragothius commented 2 years ago

Turned off SSL for Testing > Problem is gone

Any Ideas would help me.

Gruß

CM-UH commented 2 years ago

How and where did you switch off SSL????

Schönen Gruß Udo

Kragothius commented 2 years ago

How and where did you switch off SSL????

Schönen Gruß Udo

I turned off SSL in the Homebridge Fritz Platform Plugin > Device > Advanced > SSL

"devices": [ { "active": true, "name": "Fritz7530", "host": "HOSTIP", "username": "user", "password": "password", "ssl": false, <<<<<<<<<<<<<<<<<<<<< "tr064": true, "igd": false, "wifiUnits": 2, "master": true, "connection": "dsl", "options": { "wifi_2ghz": "switch", "wifi_5ghz": "switch", "wifi_guest": "switch", "aw": "characteristic" } }

CM-UH commented 2 years ago

Great!! ssl = false -> works for me!!

Thanks a lot

dis0rdr commented 2 years ago

Same issue on Fritz!Box 7590 with 7.29. Disabling SSL changes nothing for me. Tried every option without success.

title: 'Invalid Response', code: 500, soap: { errorCode: '401', errorDescription: 'Invalid Action', action: 'urn:dslforum-org:service:WANPPPConnection:1#GetInfo' }, url: 'http://fritzXXX:pw@1.2.3.4:49000/upnp/control/wanpppconn1' }

steffann commented 2 years ago

I have tested this with both 7.28 and 7.29, both give the same error:

[27/12/2021, 17:58:51] [FritzPlatform] Error: Internal Server Error
    at Object.exports.request (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:78:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at exports.requestXml (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:230:20)
    at Service.execAction (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/service.js:133:20)
    at Handler.get (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:101:28)
    at Handler.poll (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:979:11) {
  title: 'Invalid Response',
  code: 500,
  soap: {
    errorCode: '401',
    errorDescription: 'Invalid Action',
    action: 'urn:dslforum-org:service:WANPPPConnection:1#GetInfo'
  },
  url: 'http://homebridge:xxxxxx@192.168.178.1:49000/upnp/control/wanpppconn1'
}

Potentially relevant versions:

rgreco87 commented 2 years ago

Same error here with FritzBox 7590AX running FritzOS 7.29

dis0rdr commented 2 years ago

For me I could fix it by changing from „DSL“ or „Cable“ mode to „repeater“. Hope this helps.

flok commented 2 years ago

For me I could fix it by changing from „DSL“ or „Cable“ mode to „repeater“. Hope this helps.

tried that but still getting error on /upnp/control/wlanconfig1

zilluss commented 2 years ago

Same issue here, neither changing the SSL nor the connection option fixed the errors.

mrxoom1274 commented 2 years ago

Same problem. FritzOS 7.29 HOMEBRIDGE 1.4.0 ON QNAP Docker

image

jvacek commented 2 years ago

Same as above, but SSL being turned off fixed it for me. 7530 with 7.29, running HB 1.4.0 on macOS 12.3 with the M1 chip

hawk2004 commented 2 years ago

does everyone have a solution or some news for the problem? [21/08/2022, 12:17:38] [FritzPlatform] An error occurred during polling hosts! [21/08/2022, 12:17:38] [FritzPlatform] Error: Internal Server Error at Object.exports.request (/usr/local/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:78:21) at runMicrotasks ()