AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.75k stars 1.85k forks source link

UI errors: only application/json is allowed | 415 #4970

Closed pendie closed 2 years ago

pendie commented 2 years ago

Prerequisites

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

ARMv7

Installation

Custom port

Setup

On a router, DHCP is handled by AdGuard Home

AdGuard Home version

AdGuard Home v0.107.14

Description

Error: control/querylog_clear | only application/json is allowed | 415

ainar-g commented 2 years ago

Thanks for reporting! We'll try to fix these ASAP.

kiwilad-nz commented 2 years ago

Can confirm after updating in the last 5 minutes, this is preventing me from clearing the query log.

ghost commented 2 years ago

Same issue after today's update.

n7lmf commented 2 years ago

Same issue. Affects the "Use AdGuard browsing security web service", "Use AdGuard parental control web service", and "Use Safe Search" buttons as well.

fengyuclub commented 2 years ago

Had the same problem just after the update

pendie commented 2 years ago

how to disable adguard notification update

Disqu3-mirOir-qt commented 2 years ago

@ainar-g

probably because this:

Screenshot_20220930-055345_1.jpg

// WriteJSONResponse sets the content-type header in w.Header() to 
 // "application/json", encodes resp to w, calls Error on any returned error, and 
 // returns it as well. 
 func WriteJSONResponse(w http.ResponseWriter, r *http.Request, resp any) (err error) { 
         w.Header().Set(HdrNameContentType, HdrValApplicationJSON) 
         err = json.NewEncoder(w).Encode(resp) 
         if err != nil { 
                 Error(r, w, http.StatusInternalServerError, "encoding resp: %s", err) 
         } 

         return err 
 }
Disqu3-mirOir-qt commented 2 years ago

w.Header().Set("Content-Type", "text/html")

maybe can solved issue

hsdbql commented 2 years ago

I installed adguard home on an amd64-architected Debian 10 server, And ran into the same problem. So I installed it again on the Arm64 board, and it's still the same.

eroxrodriguez commented 2 years ago

Same here. Cant deactivate Ad Guard. And some other featrures like a tik brings error messages. have updated and restarted my ubuntu. nothing helps.

yyysuo commented 2 years ago

same problem.

reggieds commented 2 years ago

Update to v0.107.14. Still have same issue.

Hanfei799 commented 2 years ago

same problem.

ainar-g commented 2 years ago

This should be fixed on the Edge channel starting from version v0.108.0-a.307+4d404b88. Please verify that the fix is working for you. If it does, we plan to release it along with some other fixes.

ShlomiD83 commented 2 years ago

@ainar-g I can confirm the fix is working using the edge image on docker.

MiKing233 commented 2 years ago

i got same problem on my armv8 devices, v0.107.14

njiangk commented 2 years ago

same issue

dimdedsec commented 2 years ago

Got same issue here, have updated core to v0.108.0-b.16 on amlogic s905x openwrt device but the problem is not fix yet.

alfinauzikri commented 2 years ago

Same issue after today's update..

SurikasZen commented 2 years ago

Same ussue with use safe search and use adguard parental control web services. When you try turn off you get Error. Error: control/safesearch/disable | only application/json is allowed | 415
Error: control/parental/disable | only application/json is allowed | 415

fernvenue commented 2 years ago

This should be fixed on the Edge channel starting from version v0.108.0-a.307+4d404b88. Please verify that the fix is working for you. If it does, we plan to release it along with some other fixes.

Tested, works fine :)

911realdeb commented 2 years ago

Same error here armv7l device , Version: v0.107.14 Error: control/querylog_clear | only application/json is allowed | 415

ghost commented 2 years ago

Same problem in beta (freebsd_amd64, opnsense) immagine And in stable (linux_arm64) immagine

tzaky commented 2 years ago

Same problem (v0.107.14) on CentOS 7:

hsdbql commented 2 years ago

Edge version v0.108.0-a.308+2ffea605 has fixed this issue, it works fine.

castillofrancodamian commented 2 years ago

Here v0.107.14

tzaky commented 2 years ago

FIX: Install the EDGE version: "curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge"

vger74656 commented 2 years ago

FIX: Install the EDGE version: "curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge"

This doesn't work for me, it just asks me if I want to reinstall or uninstall, if I put -r at the end, it borks up the install and I had to recover from backups.

tzaky commented 2 years ago

FIX: Install the EDGE version: "curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge"

This doesn't work for me, it just asks me if I want to reinstall or uninstall, if I put -r at the end, it borks up the install and I had to recover from backups.

uninstall the current version and install the edge version.

vger74656 commented 2 years ago

Tried this, the web interface is still broken after edge installation, refuses to connect on port 3000

Glassertje commented 2 years ago

FIX: Install the EDGE version: "curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge"

Thaks for the fix. Works like a charm.

@vger74656 I have a raspberry pi 4 and did it:

sudo ./AdGuardHome -s uninstall curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge -r

After that i could acces via port 3000 and configurate it again. First i was getting an error but that was becourse i had no internet, so i first changed the dns after that in my router.

lchagnoleau commented 2 years ago

Hi, I'm running AdGuard over Docker and docker-compose on Raspberry pi. I do not understand how I can fix it. If someone know it :) Here is my conf:

  adguard:
    image: adguard/adguardhome
    container_name: adguard
    restart: unless-stopped
    volumes:
      - ${CONFIG}/adguard:/opt/adguardhome/conf
      - ${DATA}/adguard:/opt/adguardhome/work
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 853:853/tcp
      - 853:853/udp
      - 784:784/udp
      - 8853:8853/udp
      - 5443:5443/tcp
      - 5443:5443/udp
      - 3000:80/tcp
toby1991 commented 2 years ago

+1 facing the same problem

skl283 commented 2 years ago

This should be fixed on the Edge channel starting from version v0.108.0-a.307+4d404b88. Please verify that the fix is working for you. If it does, we plan to release it along with some other fixes.

any news to a new stable Release with these fixes?

ainar-g commented 2 years ago

We're planning to release the fix to Beta and Release channels today.

kiwilad-nz commented 2 years ago

Thank you guys! Appears to be working so far with no errors.

lchagnoleau commented 2 years ago

Works for me too ! A lot of thanks :)

Al4ndil commented 2 years ago

Works for me too :) Thx a lot !

arivelli commented 2 years ago

it isn't working for me neither (from a fresh HomeAsistant OS instalation)

fernvenue commented 1 year ago

Still shows on v0.107.19 armv7.

mhellsten commented 1 year ago

This is still broken on "Custom filtering rules page" in the latest and edge builds: Error: control/filtering/set_rules | only content-type application/json is allowed | 415 including v0.108.0-a.449+a772212d and v0.108.0-b.28

itsthejb commented 9 months ago

Just got this trying to clear stats on v0.107.44

Screenshot 2024-02-10 at 08 53 14
RyderCragie commented 9 months ago

Screenshot 2024-02-10 at 15 42 10