linkwarden / linkwarden

⚡️⚡️⚡️Self-hosted collaborative bookmark manager to collect, organize, and preserve webpages, articles, and more...
https://linkwarden.app
GNU Affero General Public License v3.0
7.72k stars 299 forks source link

linkwarden iOS shortcut hanging indefinitely #681

Open haitispaceagency opened 1 month ago

haitispaceagency commented 1 month ago

Trying to use the iOS shortcut to share directly from share menu does not work for me.

Steps to reproduce the behavior:

  1. open any page in safar
  2. click share button
  3. scroll down and select save to Linkwarden
  4. the status of it appears in the island thing (iphone14)
  5. never completes and just stays there until i click stop button within island

I've double and triple checked my server address and token and everything looks ok. using these instructions. Opening the PWA and doing it manually works as expected

iphone 14 pro max linkwarden v2.6.0

daniel31x13 commented 1 month ago

Hello and sorry for the late response, could you update LInkwarden to the latest version? I can't seem to reproduce this issue.

haitispaceagency commented 1 month ago

updated to 2.6.2

removed the shortcut and added it again along with a new token

same issue

just tried again with v2.7.1, same result. feel like i gotta be doing something wrong with the shortcut maybe. linkwarden works completely fine otherwise.

cipriani14 commented 3 weeks ago

Just setup my server this morning. 2.7.1

Docker on Synology, via cloudflare tunnels. Eventually the shortcut times out and nothing is saved.

The log shows:

[1] prisma:query SELECT "public"."Link"."id", "public"."Link"."name", "public"."Link"."type", "public"."Link"."description", "public"."Link"."collectionId", "public"."Link"."url", "public"."Link"."textContent", "public"."Link"."preview", "public"."Link"."image", "public"."Link"."pdf", "public"."Link"."readable", "public"."Link"."monolith", "public"."Link"."lastPreserved", "public"."Link"."importDate", "public"."Link"."createdAt", "public"."Link"."updatedAt" FROM "public"."Link" WHERE ("public"."Link"."url" IS NOT NULL AND ("public"."Link"."image" IS NULL OR "public"."Link"."image" = $1 OR "public"."Link"."pdf" IS NULL OR "public"."Link"."pdf" = $2 OR "public"."Link"."readable" IS NULL OR "public"."Link"."readable" = $3 OR "public"."Link"."monolith" IS NULL OR "public"."Link"."monolith" = $4)) ORDER BY "public"."Link"."id" DESC LIMIT $5 OFFSET $6

haitispaceagency commented 2 weeks ago

Just setup my server this morning. 2.7.1

Docker on Synology, via cloudflare tunnels. Eventually the shortcut times out and nothing is saved.

The log shows:

Where are these log files located? I'd like to compare and maybe we would learn something.

cipriani14 commented 2 weeks ago

Where are these log files located? I'd like to compare and maybe we would learn something.

I use Portainer and view the logs for the logs using the web interface. I don't know where they'd be outside of that.

haitispaceagency commented 1 week ago

I've just upgraded to 2.7.1 and its in working order now! I just deleted old short and revoked all tokens and issued a new one and its working smoothly.

cipriani14 commented 1 week ago

I updated as well, and have no luck still.

I’m using cloudflare tunnels and using that URL in the shortcut. When I change it from https: to http:, the shortcut acts like it works (as in, the shortcut status circle completes as if it ran successfully.)

However, there are no new entries in my account. If I change it back to https: it times out and nothing happens.

haitispaceagency commented 3 days ago

have you tried running it locally and just directly at the ip:port?

cipriani14 commented 3 days ago

have you tried running it locally and just directly at the ip:port?

I hadn't, but I did this morning and it works as expected. Not sure what could be going on. I mirrored my setup to a buddy of mine. I'll keep digging.

cipriani14 commented 2 days ago

Figured this out today. I had the NEXTAUTH_URL ENV variable set to my local IP, not the URL that I was using through cloudflare tunnels.

Once I made the change, it works as it should.