[Bug]: Uploading books fails with Brave browser #2718

Closed
opened 2026-04-25 00:09:51 +02:00 by adam · 9 comments
Owner

Originally created by @Schmiggolas on GitHub (Apr 16, 2025).

What happened?

When trying to upload a new m4b audiobook using Brave browser on Linux it fails every time.
I tried Brave version 1.77.97 installed using the aur "brave-bin" package.
The upload did work using Firefox on Linux/Windows, Brave on Windows and Edge on Windows.

There is no log output regarding this in the "Logs" section in audiobookshelf itself.

What did you expect to happen?

The upload should succeed.

Steps to reproduce the issue

  1. Try to upload a audiobook using Brave 1.77.97 on Linux

Audiobookshelf version

2.20.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Other (list in "Additional Notes" box)

Logs

8c00c2e.js:1 Socket initialized
8c00c2e.js:1 Fetched tasks Object
8c00c2e.js:1 [SOCKET] Connected
8c00c2e.js:1 Init Payload Object
71edf48.js:1 Upload results Object
8c00c2e.js:1 Axios error NaN Unknown Error
(anonymous) @ 8c00c2e.js:1
71edf48.js:1 Failed Error: Network Error
    at t.exports (9050dc2.js:2:198048)
    at _.onerror (9050dc2.js:2:197014)
(anonymous) @ 71edf48.js:1
api/upload:1 
            
            
           Failed to load resource: net::ERR_ACCESS_DENIED

Additional Notes

Using Brave browser v. 1.77.97 on Linux.

Originally created by @Schmiggolas on GitHub (Apr 16, 2025). ### What happened? When trying to upload a new m4b audiobook using Brave browser on Linux it fails every time. I tried Brave version 1.77.97 installed using the [aur "brave-bin"](https://aur.archlinux.org/packages/brave-bin) package. The upload did work using Firefox on Linux/Windows, Brave on Windows and Edge on Windows. There is no log output regarding this in the "Logs" section in audiobookshelf itself. ### What did you expect to happen? The upload should succeed. ### Steps to reproduce the issue 1. Try to upload a audiobook using Brave 1.77.97 on Linux ### Audiobookshelf version 2.20.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Other (list in "Additional Notes" box) ### Logs ```shell 8c00c2e.js:1 Socket initialized 8c00c2e.js:1 Fetched tasks Object 8c00c2e.js:1 [SOCKET] Connected 8c00c2e.js:1 Init Payload Object 71edf48.js:1 Upload results Object 8c00c2e.js:1 Axios error NaN Unknown Error (anonymous) @ 8c00c2e.js:1 71edf48.js:1 Failed Error: Network Error at t.exports (9050dc2.js:2:198048) at _.onerror (9050dc2.js:2:197014) (anonymous) @ 71edf48.js:1 api/upload:1 Failed to load resource: net::ERR_ACCESS_DENIED ``` ### Additional Notes Using Brave browser v. 1.77.97 on Linux.
adam added the bug label 2026-04-25 00:09:51 +02:00
adam closed this issue 2026-04-25 00:09:51 +02:00
Author
Owner

@Vito0912 commented on GitHub (Apr 16, 2025):

Please check the following:

  1. If you see a "Socket disconnected/connected" message when uploading, please proceed to step 2. If not, proceed to step 3 and then return to step 2 if step 3 does not resolve the issue.

  2. Check for a server crash.
    Please go to your logs directory in ABS (the actual directory, not via the web interface) and locate the logs folder, which is under your metadata folder. Inside, you should find a file named crash_log. If not (and you tried step 3), please report back.

  3. Can you check the following items:

    1. Try disabling Shield if it is active for the site.
    2. Check if a browser extension is blocking something.
    3. Check if you are receiving CORS messages in the networktab.
@Vito0912 commented on GitHub (Apr 16, 2025): Please check the following: 1. If you see a "Socket disconnected/connected" message when uploading, please proceed to step 2. If not, proceed to step 3 and then return to step 2 if step 3 does not resolve the issue. 2. Check for a server crash. Please go to your logs directory in ABS (the actual directory, not via the web interface) and locate the logs folder, which is under your metadata folder. Inside, you should find a file named crash_log. If not (and you tried step 3), please report back. 3. Can you check the following items: 1. Try disabling Shield if it is active for the site. 2. Check if a browser extension is blocking something. 3. Check if you are receiving CORS messages in the networktab.
Author
Owner

@Schmiggolas commented on GitHub (Apr 16, 2025):

It's not a server crash. There is no crash log and I'm getting a "Opps, something went wrong" popup.

Something new I encountered while poking around is the tab "crashing" (idk if that's the correct term) with: RESULT_CODE_KILLED_BAD_MESSAGE.

Might be related, but I'm not sure.

Here's what I tried so far

  1. Disable Shield: no change
  2. Use private window without extensions: no change
  3. Use private windows AND disable Shield: no change

I'm not sure what to look for in the network tab. I'm no web developer. Could you explain what exactly you need?

@Schmiggolas commented on GitHub (Apr 16, 2025): It's not a server crash. There is no crash log and I'm getting a "Opps, something went wrong" popup. Something new I encountered while poking around is the tab "crashing" (idk if that's the correct term) with: RESULT_CODE_KILLED_BAD_MESSAGE. Might be related, but I'm not sure. Here's what I tried so far 1. Disable Shield: no change 2. Use private window without extensions: no change 3. Use private windows AND disable Shield: no change I'm not sure what to look for in the network tab. I'm no web developer. Could you explain what exactly you need?
Author
Owner

@nichwall commented on GitHub (Apr 16, 2025):

At what point in the upload does it fail with Brave on Linux? Immediately, partway through, or after a specific amount of time. Are you able to test with other files (smaller or larger) to see if the same behavior happens?

@nichwall commented on GitHub (Apr 16, 2025): At what point in the upload does it fail with Brave on Linux? Immediately, partway through, or after a specific amount of time. Are you able to test with other files (smaller or larger) to see if the same behavior happens?
Author
Owner

@Schmiggolas commented on GitHub (Apr 16, 2025):

The moment I click the "Upload" button it errors out with the behaviour mentioned above.

  1. Click "Choose files"
  2. Select book to upload
  3. Click "Upload"

It immediately fails after 3.

While testing some things I found this:

Image

Maybe the file selection portal for brave doesn't return the right file path?

@Schmiggolas commented on GitHub (Apr 16, 2025): The moment I click the "Upload" button it errors out with the behaviour mentioned above. 1. Click "Choose files" 2. Select book to upload 3. Click "Upload" It immediately fails after 3. While testing some things I found this: ![Image](https://github.com/user-attachments/assets/0273caa1-8b16-4c6d-b99e-daed49b4b056) Maybe the file selection portal for brave doesn't return the right file path?
Author
Owner

@Vito0912 commented on GitHub (Apr 16, 2025):

Are you experiencing similar problems on other websites while using the Brave browser?

This sounds like a Linux issue, especially since it shows the "Oops" dialog you described. That dialog usually comes from the operating system.

@Vito0912 commented on GitHub (Apr 16, 2025): Are you experiencing similar problems on other websites while using the Brave browser? This sounds like a Linux issue, especially since it shows the "Oops" dialog you described. That dialog usually comes from the operating system.
Author
Owner

@Schmiggolas commented on GitHub (Apr 16, 2025):

Not yet, but I updated my system, including Brave, yesterday. Maybe something will come up in the next few days.
I agree that a issue with brave is the most likely solution.
I'll leave it up to you guys to close this issue or not. I'm fine with using another browser to upload for now. But I think ABS should fail gracefully when the upload process fails.

@Schmiggolas commented on GitHub (Apr 16, 2025): Not yet, but I updated my system, including Brave, yesterday. Maybe something will come up in the next few days. I agree that a issue with brave is the most likely solution. I'll leave it up to you guys to close this issue or not. I'm fine with using another browser to upload for now. But I think ABS should fail gracefully when the upload process fails.
Author
Owner

@Vito0912 commented on GitHub (Apr 16, 2025):

If this only happens for ABS, it might be something that ABS does with uploading. So, if advplyr sees this, in my opinion, this should be left open.

@Vito0912 commented on GitHub (Apr 16, 2025): If this only happens for ABS, it might be something that ABS does with uploading. So, if advplyr sees this, in my opinion, this should be left open.
Author
Owner

@Schmiggolas commented on GitHub (Apr 16, 2025):

I'll test if this also happens on other sites and I'll let you guys know.

@Schmiggolas commented on GitHub (Apr 16, 2025): I'll test if this also happens on other sites and I'll let you guys know.
Author
Owner

@Schmiggolas commented on GitHub (Apr 16, 2025):

Okay I think this is not ABS related.
The file I tried to upload is in a directory which I have synced using the Nextcloud desktop app.
I tried uploading that file to gdrive and it also failed.
I then copied the file to another directory outside of the nextcloud synced directories and suddenly the upload works both for gdrive and ABS.
So it seems that the file picker dialog used by Brave on Linux has some kind of issue with cloud synced files or something.

I'll close this, since it's now confirmed this is not related to ABS.
Thank you for you time anyways.

@Schmiggolas commented on GitHub (Apr 16, 2025): Okay I think this is not ABS related. The file I tried to upload is in a directory which I have synced using the Nextcloud desktop app. I tried uploading that file to gdrive and it also failed. I then copied the file to another directory outside of the nextcloud synced directories and suddenly the upload works both for gdrive and ABS. So it seems that the file picker dialog used by Brave on Linux has some kind of issue with cloud synced files or something. I'll close this, since it's now confirmed this is not related to ABS. Thank you for you time anyways.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2718