Chrome RSS Subscription Extension

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
orphean
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 May 2013, 03:32

Chrome RSS Subscription Extension

Postby orphean » 05 May 2013, 21:21

I'm trying to use this RSS Subscription extension with ttrss and it's a total crapshoot. The majority of the time I get the 'could not subscribe to feed' error once the extension redirects to the ttrss url. I'm using the following as the subscribe url in the extension:

Code: Select all

https://example.com/public.php?op=subscribe&feed_url=%s


When it happens I can copy and paste the url from the error screen, go to ttrss, and subscribe to the feed just fine so it's nothing inherent in ttrss that's causing this. Do I have that URL right in the extension?

jakob42
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 20 Mar 2013, 16:43

Re: Chrome RSS Subscription Extension

Postby jakob42 » 05 May 2013, 22:02

I had the same problems after I switched to https and forgot to update the URL in the plugin. Otherwise it's been working great for me.

orphean
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 02 May 2013, 03:32

Re: Chrome RSS Subscription Extension

Postby orphean » 06 May 2013, 03:43

Weird, I have the protocol and domain correct. I'll have to dig deeper when i get some time, thanks for the confirmation.

Napkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 21
Joined: 29 Mar 2013, 01:07

Re: Chrome RSS Subscription Extension

Postby Napkin » 11 May 2013, 00:13

A colleague using my installation of TTRSS has the same problem. Looking at the apache logs I saw that chrome for some reason adds %2B%4F or similar to the end when calling the public.php URL. We had no idea what caused that.

stephan13360
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 11 May 2013, 12:56

Re: Chrome RSS Subscription Extension

Postby stephan13360 » 11 May 2013, 12:57

Use %S instead of %s that fixed it for me.

Napkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 21
Joined: 29 Mar 2013, 01:07

Re: Chrome RSS Subscription Extension

Postby Napkin » 11 May 2013, 13:58

One of %s/%S provides the rss link without the protocol at the front. When we tested it didn't make any difference, unfortunately.

sdg
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 09 Jul 2013, 14:55

Re: Chrome RSS Subscription Extension

Postby sdg » 09 Jul 2013, 14:58

FWIW, using

Code: Select all

https://example.com/public.php?feed_url=%s&op=subscribe
worked for me.

atrus
Bear Rating Trainee
Bear Rating Trainee
Posts: 17
Joined: 19 Apr 2013, 20:03

Re: Chrome RSS Subscription Extension

Postby atrus » 08 Oct 2013, 18:38

I just hit this again after a new Chrome setup, and figured out a bit more.

When you copy and paste the URL from the TTRSS FAQ page, if you're not really careful, you get some extra unicode whitespace characters:

Code: Select all

00000000  49 20 6e 65 65 64 20 61  20 55 52 4c 20 49 20 63  |I need a URL I c|
00000010  61 6e 20 63 61 6c 6c 20  74 6f 20 73 75 62 73 63  |an call to subsc|
00000020  72 69 62 65 20 74 6f 20  66 65 65 64 20 74 6f 20  |ribe to feed to |
00000030  69 6e 74 65 67 72 61 74  65 20 77 69 74 68 20 73  |integrate with s|
00000040  6f 6d 65 20 74 68 69 72  64 20 70 61 72 74 79 20  |ome third party |
00000050  62 72 6f 77 73 65 72 20  65 78 74 65 6e 73 69 6f  |browser extensio|
00000060  6e 2f 61 70 70 6c 69 63  61 74 69 6f 6e 2e 53 45  |n/application.SE|
00000070  4c 46 5f 55 52 4c 5f 50  41 54 48 2f 70 75 62 6c  |LF_URL_PATH/publ|
00000080  69 63 2e 70 68 70 3f 6f  70 3d 73 75 62 73 63 72  |ic.php?op=subscr|
00000090  69 62 65 26 66 65 65 64  5f 75 72 6c 3d 25 73 ef  |ibe&feed_url=%s.|
000000a0  bb bf 0a 53 45 4c 46 5f  55 52 4c 5f 50 41 54 48  |...SELF_URL_PATH|
000000b0  20 3d 20 68 74 74 70 3a  2f 2f 79 6f 75 72 2e 74  | = http://your.t|
000000c0  74 72 73 73 2e 73 65 72  76 65 72 2f 74 74 2d 72  |trss.server/tt-r|
000000d0  73 73 2f                                          |ss/|


In particular, there's the %s, then 0xefbbbf, then a newline.

0xefbbbf in utf8 is U+FEFF ZERO WIDTH NO-BREAK SPACE character ()

If that ends up in your subscription URL, "you're going to have a bad time".

Maybe TTRSS should detect, warn, and/or fix whitespace characters in this situation?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Chrome RSS Subscription Extension

Postby fox » 08 Oct 2013, 19:47

I paste things all the time and manage not to insert random unicode characters while I'm doing it. Just saying.

atrus
Bear Rating Trainee
Bear Rating Trainee
Posts: 17
Joined: 19 Apr 2013, 20:03

Re: Chrome RSS Subscription Extension

Postby atrus » 08 Oct 2013, 21:32

Here's the way I'm hitting this problem, both in Chrome and Firefox. Note, you'll want to have xsel and hexdump installed to easily look at what's in your clipboard:

1) Open http://tt-rss.org/redmine/projects/tt-r ... dQuestions
2) On the line with the subscription URL, double-click-and-hold on the "SELF_URL_PATH" part of the URL template
3) Without releasing the mouse, drag far enough to the right to highlight the "s" of the "%s"
4) Hit Ctrl-C to copy.

In a terminal, examine your clipboard:

Code: Select all

$ xsel -ob | hexdump -C
00000000  53 45 4c 46 5f 55 52 4c  5f 50 41 54 48 2f 70 75  |SELF_URL_PATH/pu|
00000010  62 6c 69 63 2e 70 68 70  3f 6f 70 3d 73 75 62 73  |blic.php?op=subs|
00000020  63 72 69 62 65 26 66 65  65 64 5f 75 72 6c 3d 25  |cribe&feed_url=%|
00000030  73 ef bb bf     
|s...|

You can also get this by plain-old dragging your mouse, but whether or not you get the extra whitespace depends on exactly where your mouse cursor is when you stop highlighting.

You can also do this without the Ctrl-C step by operating on the primary buffer. Double-click or drag-to select the appropriate text, and just run:

Code: Select all

[email protected]:~/local/build-g4/work$ xsel | hexdump -C
00000000  53 45 4c 46 5f 55 52 4c  5f 50 41 54 48 2f 70 75  |SELF_URL_PATH/pu|
00000010  62 6c 69 63 2e 70 68 70  3f 6f 70 3d 73 75 62 73  |blic.php?op=subs|
00000020  63 72 69 62 65 26 66 65  65 64 5f 75 72 6c 3d 25  |cribe&feed_url=%|
00000030  73 ef bb bf                                       |s...|
00000034

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Chrome RSS Subscription Extension

Postby fox » 08 Oct 2013, 21:48

linux on the desktop, ladies and gentlemen

Sent from my Nexus 10 using Tapatalk 4

Napkin
Bear Rating Trainee
Bear Rating Trainee
Posts: 21
Joined: 29 Mar 2013, 01:07

Re: Chrome RSS Subscription Extension

Postby Napkin » 08 Oct 2013, 23:07

The colleague I spoke about is using windows - not something I'd call desktop, though..

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Chrome RSS Subscription Extension

Postby fox » 09 Oct 2013, 12:13

I too think that instead of fixing software which inserts random characters other software which works correctly should add workarounds to remove those random characters. Because, you see, my colleague and hex dumps of X11 selection buffer.

Nope. Somehow I'm just not feeling it, you know.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 13 guests