Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to load collections #23

Open
HeyJwd opened this issue Jan 4, 2025 · 12 comments
Open

Failing to load collections #23

HeyJwd opened this issue Jan 4, 2025 · 12 comments
Labels
connection issue Some issue with the server connection

Comments

@HeyJwd
Copy link

HeyJwd commented Jan 4, 2025

Good day, when attempting to capture a link, I am presented with the drop down menu for collections, however the field is blank and does not allow me to select any collection.
Attempting to push it of course doesnt work and i receive the toast message.

So essentially the collections menu is not presenting. I attempted to make a new test collection to see if changes might reflect but no dice. Also not able to have app recognize alternative default collections in the settings

Running latest version and upon device restart also received:
Failed to fetch collections
And
Failed to fetch tags

@HeyJwd
Copy link
Author

HeyJwd commented Jan 4, 2025

LinkDroid Debug Log

=== System Information ===
Time: 2025-01-04 11:20:51
App Version: 2.0.1
Android Version: 14 (API 34)
Device: samsung SM-F926W
Build: UP1A.231005.007.F926WVLS9JXK9
Kernel: 5.4.254-qgki-29539737-abF926WVLS9JXK9

=== Memory Information ===
Total RAM: 11358 MB
Available RAM: 4605 MB
Low memory: false

=== Display Information ===
Resolution: 840x2289
Density: 2.625 (420 dpi)

=== Network Information ===
Network Type: WiFi
WiFi Enabled: true
Metered: false
VPN: true

=== App Settings ===
Base URL configured: true
Auth Token configured: true
Default Collection: Unorganized
Name Required: true

=== WebView Information ===
WebView Version: 131.0.6778.136
WebView Package: com.google.android.webview

=== Runtime Information ===
Max Memory: 512 MB
Used Memory: 8 MB
Free Memory: 3 MB
Available Processors: 8

@Dacid99
Copy link
Owner

Dacid99 commented Jan 5, 2025

Hi this sound a lot like your app not being properly connected to your instance.
Can you login to your linkwarden via the app?
And if so have you set the access token?

@HeyJwd
Copy link
Author

HeyJwd commented Jan 6, 2025

Hi thanks for your response and for a great addition to Linkwarden.
Yes I have configured the app with server location and port - everything default.
Access token is working. I am able to operate from both the app and browser.
The only part that is missing for me is to be able to push from the share menu.
If you would like me to send a short GIF of how the issue presents itself I can attach.

@pranqster
Copy link

I have this issue when the app is idle for a while. When I open it again, it prompts with: "Can't Connect. Server connection failed. Try again later." It only begins to work again if I hit back on the app and the dashboard loads. And then the share menu push begins to work again.

@Dacid99
Copy link
Owner

Dacid99 commented Jan 8, 2025

I have this issue when the app is idle for a while. When I open it again, it prompts with: "Can't Connect. Server connection failed. Try again later." It only begins to work again if I hit back on the app and the dashboard loads. And then the share menu push begins to work again.

Thx for reporting this interesting behaviour, can you please describe in more detail what you do to produce this behaviour?
Id like to reproduce and understand, ideally fix it.

@Dacid99
Copy link
Owner

Dacid99 commented Jan 8, 2025

Hi thanks for your response and for a great addition to Linkwarden.
Yes I have configured the app with server location and port - everything default.
Access token is working. I am able to operate from both the app and browser.
The only part that is missing for me is to be able to push from the share menu.
If you would like me to send a short GIF of how the issue presents itself I can attach.

Ok this is weird. Whats the toast message you receive? Maybe try to reinstall?

@pranqster
Copy link

Thx for reporting this interesting behaviour, can you please describe in more detail what you do to produce this behaviour?
Id like to reproduce and understand, ideally fix it.

Sure. For me, it happens literally every time the app has been closed or has been idle for a while. Upon opening the app, I am greeted with the "Can't Connect" prompt. I hit "Ok" on that pop-up, where it sits on a blank screen with the LinkDroid logo until I swipe back within the app, then the dashboard screen loads. The app funtions normally after this until the next time it idles or is closed/reopened.

@pranqster
Copy link

pranqster commented Jan 8, 2025

Also, apologies if I interjected here with an unrelated issue. I felt it was related to what @HeyJwd was experiencing.

@HeyJwd
Copy link
Author

HeyJwd commented Jan 19, 2025

Here is a clip recreating the issue im having with the share button feature
If you look closely I am attempting to tap on the collections dropdown yet no collection is displayed.
The toast message also is displayed.
Once again, Linkdroid is working perfectly when deployed as a seperate app. Current workflow is to copy link and paste into New Link menu.
Please let me know what you think, thanks.

recording_20250119_121030_1.mp4

@DevCode-Monkey
Copy link

Also facing the same issue as @HeyJwd. Have tried reinstalling/re-adding my details and access keys.

@Dacid99 Dacid99 added the connection issue Some issue with the server connection label Jan 23, 2025
@Dacid99
Copy link
Owner

Dacid99 commented Jan 23, 2025

#24
Sry for the late reply guys.
I was able to reproduce the 'no collections in share menu' issue. I suppose there is a flaw in one of the API requests, Ill have to dig deeper to fix this.
Nonetheless could you all please check how you specify the url in the settings? Perhaps there is a formatting issue that the webview in the app can handle but the API handler cant. The format that is intended and works in my tests is http(s)://linkwarden.domain.tld , no extra slashes.
I'll report when I have debugged the API handlers.

@Dacid99
Copy link
Owner

Dacid99 commented Jan 23, 2025

I have also found the source for the eventual connection errors: sometimes the webinterface of linkwarden sends a 404 status because a preview image wasnt found. That then makes the webview raise the connection error.
Yet Im afraid theres not much I can do about this though. Ill open an issue in the linkwarden repo on this even though this is technically correct behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connection issue Some issue with the server connection
Projects
None yet
Development

No branches or pull requests

4 participants