From b64b1dca97af384e49e380002923265ecdcce734 Mon Sep 17 00:00:00 2001 From: delmar <> Date: Thu, 9 Apr 2020 08:23:10 +0000 Subject: [PATCH] 70_DENON_AVR: fixed HTTP 403 (thx justme1968) git-svn-id: https://svn.fhem.de/fhem/trunk@21632 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_DENON_AVR.pm | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 2e219d951..f3f53b2b6 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_DENON_AVR: fixed HTTP 403 (thx justme1968) - bugfix : 73_AutoShuttersControl: fix shading drive if current position under shading position - feature: 37_echodevice.pm diff --git a/fhem/FHEM/70_DENON_AVR.pm b/fhem/FHEM/70_DENON_AVR.pm index 62a106cbe..2b24bedcb 100755 --- a/fhem/FHEM/70_DENON_AVR.pm +++ b/fhem/FHEM/70_DENON_AVR.pm @@ -1002,7 +1002,10 @@ sub DENON_AVR_ParseDeviceinfoResponse { my $name = $hash->{NAME}; my $return; - if($err ne "") { + if($err ne '' || $data =~ m/Error 403/) { + if ( $err eq '' ) { + $err = 'Error 403: Forbidden'; + } Log3 $name, 0, "DENON_AVR ($name) - Error while requesting ".$param->{url}." - $err"; readingsBeginUpdate($hash); readingsBulkUpdate($hash, 'httpState', 'ERROR', 0);