Will not login, throws 'unknown error' #295

Closed
opened 2026-04-24 23:15:35 +02:00 by adam · 7 comments
Owner

Originally created by @StudioNirin on GitHub (Sep 14, 2022).

Steps to reproduce

  1. Install 2.1.5 audiobookshelf server on docker
  2. I have reverse proxy set up with Nginx Proxy Manager, however this issue also happens if I connect with local IP so the proxy doesn't seem to be related.
  3. Install current android app
  4. Connect to server address (via url or local ip) (this seems to work, as it moves on to the login step)
  5. Try and login - this does nothing, except says 'unknown error'

Expected behaviour

IT should login.

Actual behaviour

It throws an 'unknown error'

Environment data

Audiobookshelf Version: 2.1.5

  • [Yes] Android App?

Android Issue

Android version:
12
Device model:
Z-Flip4
Stock or customized system:
Stock

Originally created by @StudioNirin on GitHub (Sep 14, 2022). ### Steps to reproduce 1. Install 2.1.5 audiobookshelf server on docker 2. I have reverse proxy set up with Nginx Proxy Manager, however this issue also happens if I connect with local IP so the proxy doesn't seem to be related. 3. Install current android app 4. Connect to server address (via url or local ip) (this seems to work, as it moves on to the login step) 5. Try and login - this does nothing, except says 'unknown error' ### Expected behaviour IT should login. ### Actual behaviour It throws an 'unknown error' ### Environment data Audiobookshelf Version: 2.1.5 - [Yes] Android App? #### Android Issue Android version: 12 Device model: Z-Flip4 Stock or customized system: Stock
adam added the bug label 2026-04-24 23:15:35 +02:00
adam closed this issue 2026-04-24 23:15:35 +02:00
Author
Owner

@advplyr commented on GitHub (Sep 14, 2022):

What does the server logs say?

@advplyr commented on GitHub (Sep 14, 2022): What does the server logs say?
Author
Owner

@StudioNirin commented on GitHub (Sep 14, 2022):

I found a solution - I needed to add http:// to the start of the ip or url.
If this is always needed on order to work, the app should have some logic
that assumes its always there (or adds it if it's missing). It's simple to
do. It didn't even occur to me that you might not have that in place
already.

On Wed, 14 Sept 2022, 19:36 advplyr, @.***> wrote:

What does the server logs say?


Reply to this email directly, view it on GitHub
https://github.com/advplyr/audiobookshelf-app/issues/382#issuecomment-1247158313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA4T22JJ5XYVW45DELAC6HTV6ILL7ANCNFSM6AAAAAAQMVVLKY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@StudioNirin commented on GitHub (Sep 14, 2022): I found a solution - I needed to add http:// to the start of the ip or url. If this is always needed on order to work, the app should have some logic that assumes its always there (or adds it if it's missing). It's simple to do. It didn't even occur to me that you might not have that in place already. On Wed, 14 Sept 2022, 19:36 advplyr, ***@***.***> wrote: > What does the server logs say? > > — > Reply to this email directly, view it on GitHub > <https://github.com/advplyr/audiobookshelf-app/issues/382#issuecomment-1247158313>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA4T22JJ5XYVW45DELAC6HTV6ILL7ANCNFSM6AAAAAAQMVVLKY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@advplyr commented on GitHub (Sep 14, 2022):

That is in place already. If your server entry does not start with "http" then "http://" will get added. See here https://github.com/advplyr/audiobookshelf-app/blob/master/components/connection/ServerConnectForm.vue#L256

I just tested entering my local ip without the protocol and it works. This won't work if you need to enter https:// since it will by default put in http://

@advplyr commented on GitHub (Sep 14, 2022): That is in place already. If your server entry does not start with "http" then "http://" will get added. See here https://github.com/advplyr/audiobookshelf-app/blob/master/components/connection/ServerConnectForm.vue#L256 I just tested entering my local ip without the protocol and it works. This won't work if you need to enter https:// since it will by default put in http://
Author
Owner

@MattInternet commented on GitHub (Sep 14, 2022):

I am experiencing this same issue. My server has ssl setup so I the server address starts with 'https'

I have tried it with and without the prefix. The server is running behind traefik

@MattInternet commented on GitHub (Sep 14, 2022): I am experiencing this same issue. My server has ssl setup so I the server address starts with 'https' I have tried it with and without the prefix. The server is running behind traefik
Author
Owner

@advplyr commented on GitHub (Sep 14, 2022):

@MattInternet I'm sure your issue is separate. There have been different issues posted here and in the main repo about traefik but I'm not familiar with it personally. I believe there are some active users in the discord server that run traefik.

@advplyr commented on GitHub (Sep 14, 2022): @MattInternet I'm sure your issue is separate. There have been different issues posted here and in the main repo about traefik but I'm not familiar with it personally. I believe there are some active users in the discord server that run traefik.
Author
Owner

@StudioNirin commented on GitHub (Sep 14, 2022):

No it 8snt,because it -only- works if I manually add http:// to the start
of the server address. If you have it set up that it already adds that by
default, then you have it set up incorrectly.

On Wed, 14 Sept 2022, 19:44 advplyr, @.***> wrote:

That is in place already. If your server entry does not start with "http"
then "http://". See here
https://github.com/advplyr/audiobookshelf-app/blob/master/components/connection/ServerConnectForm.vue#L256

I just tested entering my local ip without the protocol and it works. This
won't work if you need to enter https:// since it will by default put in
http://


Reply to this email directly, view it on GitHub
https://github.com/advplyr/audiobookshelf-app/issues/382#issuecomment-1247166039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA4T22MHGXSX3X3JU7YIDALV6IMIDANCNFSM6AAAAAAQMVVLKY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@StudioNirin commented on GitHub (Sep 14, 2022): No it 8snt,because it -only- works if I manually add http:// to the start of the server address. If you have it set up that it already adds that by default, then you have it set up incorrectly. On Wed, 14 Sept 2022, 19:44 advplyr, ***@***.***> wrote: > That is in place already. If your server entry does not start with "http" > then "http://". See here > https://github.com/advplyr/audiobookshelf-app/blob/master/components/connection/ServerConnectForm.vue#L256 > > I just tested entering my local ip without the protocol and it works. This > won't work if you need to enter https:// since it will by default put in > http:// > > — > Reply to this email directly, view it on GitHub > <https://github.com/advplyr/audiobookshelf-app/issues/382#issuecomment-1247166039>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA4T22MHGXSX3X3JU7YIDALV6IMIDANCNFSM6AAAAAAQMVVLKY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@ravikiranj commented on GitHub (Aug 13, 2023):

@advplyr I can actually reproduce this error on v2.3.3 (Docker on Windows) with latest Android app (0.0.65-beta).

Probably worth adding a placeholder to the server input element. Weirdly, the ping to the server succeeds but not the login.

Audiobookshelf-Unknown-Error

@ravikiranj commented on GitHub (Aug 13, 2023): @advplyr I can actually reproduce this error on v2.3.3 (Docker on Windows) with latest Android app (0.0.65-beta). Probably worth adding a [placeholder](https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder) to the server input element. Weirdly, the ping to the server succeeds but not the login. ![Audiobookshelf-Unknown-Error](https://github.com/advplyr/audiobookshelf-app/assets/389491/b5ee98d0-239c-4301-983b-e983246525a1)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#295