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

OLW 0.5.1.3 Does not update the list of labels for Blogger #214

Closed
n0tb0dy opened this issue Dec 22, 2015 · 62 comments
Closed

OLW 0.5.1.3 Does not update the list of labels for Blogger #214

n0tb0dy opened this issue Dec 22, 2015 · 62 comments

Comments

@n0tb0dy
Copy link

n0tb0dy commented Dec 22, 2015

Even when you press the refresh button , the list of labels is not loaded. I use blogger service.

2015-12-22_150214

@n0tb0dy n0tb0dy changed the title OLW 0. OLW 0.5.1.3 Do not update the list of labels Dec 22, 2015
@n0tb0dy
Copy link
Author

n0tb0dy commented Dec 22, 2015

How it was in WLW

2015-12-22_151632

@ScottIsAFool
Copy link
Member

Unfortunately, we had to move to a new Blogger service in order for users to be able to actually authenticate and use Blogger. Moving to that had its own downside in that it doesn't support getting a list of your blog's categories/labels. All we can do right now is provide you a space to write your own tags (comma separated). We are investigating how best to try and bring this back though.

@n0tb0dy
Copy link
Author

n0tb0dy commented Dec 22, 2015

Thanks! I hope you can do it!

@Indy27
Copy link

Indy27 commented Dec 22, 2015

@ScottIsAFool Did you try asking some of the devs at Blogger (or even Google) that helped with WLW, see if any of them would give info on this situation? I know it's a long shot, but any bit of information would be good.

@ScottIsAFool
Copy link
Member

I believe @martinwoodward was planning to reach out. I don't know if anything came of it or whether he got any responses.

@Indy27
Copy link

Indy27 commented Dec 22, 2015

Okay. I see 5.1.3's out, where to get?

@ScottIsAFool
Copy link
Member

@Indy27 open live writer, leave it a minute, the restart it, that should give you the latest version.

@martinwoodward
Copy link
Member

I haven't reached out yet to the Blogger team - will do now we have 0.5.1.3 out.

@Indy27 the other way to force an update is to download again from http://openlivewriter.org.

@vasudevG
Copy link

I'm not getting even the space to write own tags... it has only the Set post date. This is for Blogger blog. While it shows for WordPress blog.

@martinwoodward
Copy link
Member

@vasudevG - sounds like you are not on 0.5.1.3 yet? (check in your about box). If you restart you should be upgraded or you can force an update by downloading again from http://openlivewriter.org

@vasudevG
Copy link

I'm on 0.5.1.3

@vasudevG
Copy link

olwblogger

@martinwoodward
Copy link
Member

Wow. Very odd. Can you take a screen shot of the about box and also the blog capabilities dialog? Many thanks.

@martinwoodward
Copy link
Member

So, response from Google Blogger team as follows:

[unique list of labels] isn't something we currently expose through the API. I've asked the API team if this is something we could expose easily. In the mean time I suggest you go ahead with a scan and cache approach

@Indy27
Copy link

Indy27 commented Dec 22, 2015

Which, basically, come up with our own invention...nice, Google. That can take, I don't know, weeks, even months depending on various factors.

@vasudevG
Copy link

@martinwoodward And magically its appearing now :)
olwblogger1
But the username is some alphanumeric, tried to re-enter the values but it says, username, password is incorrect.
olwblogger2
Though I'm able to post to blogger blog. Thanks.

@martinwoodward martinwoodward changed the title OLW 0.5.1.3 Do not update the list of labels OLW 0.5.1.3 Does not update the list of labels for Blogger Dec 23, 2015
@vhanla
Copy link
Contributor

vhanla commented Dec 23, 2015

What about the url /feeds/posts/summary?alt=json&max-results=0&callback=cat where you can get the labels as term, and it doesn't even need an API key?

@ScottIsAFool
Copy link
Member

@vhanla have you got a link to where that's referenced?

@vhanla
Copy link
Contributor

vhanla commented Dec 23, 2015

@ScottIsAFool I'm not sure but I guess it is from Blogger's or Google Feed API 1.0, I suppose that old API is going to be deprecated, but I've also seen many third party widgets and tutorials that uses that old method.

BTW there is also a widget from Blogger that lists labels, hope they will allow to list labels in the newer APIs.

@ScottIsAFool
Copy link
Member

I think that API is already deprecated (hence the Blogger issues we had recently)

@vhanla
Copy link
Contributor

vhanla commented Dec 23, 2015

For example, this is what google chrome releases blogspot page show given that url
http://googlechromereleases.blogspot.de/feeds/posts/summary?alt=json&max-results=0&callback=cat

// API callback
cat({
    "version": "1.0",
    "encoding": "UTF-8",
    "feed": {
        "xmlns": "http://www.w3.org/2005/Atom",
        "xmlns$openSearch": "http://a9.com/-/spec/opensearchrss/1.0/",
        "xmlns$blogger": "http://schemas.google.com/blogger/2008",
        "xmlns$georss": "http://www.georss.org/georss",
        "xmlns$gd": "http://schemas.google.com/g/2005",
        "xmlns$thr": "http://purl.org/syndication/thread/1.0",
        "id": {
            "$t": "tag:blogger.com,1999:blog-8982037438137564684"
        },
        "updated": {
            "$t": "2015-12-23T07:11:51.489-08:00"
        },
        "category": [{
            "term": "Dev updates"
        }, {
            "term": "Beta updates"
        }, {
            "term": "Chrome OS"
        }, {
            "term": "Stable updates"
        }, {
            "term": "Chrome Beta for Android"
        }, {
            "term": "Admin Console"
        }, {
            "term": "Chrome for Android"
        }, {
            "term": "Chrome for iOS"
        }, {
            "term": "Android WebView"
        }, {
            "term": "Chrome OS Management"
        }, {
            "term": "Chromecast Update"
        }, {
            "term": "Flash Player update"
        }, {
            "term": "Chrome Dev for Android"
        }, {
            "term": "dev update"
        }, {
            "term": "chrome"
        }],
        "title": {
            "type": "text",
            "$t": "Chrome Releases"
        },
        "subtitle": {
            "type": "html",
            "$t": "Release updates from the Chrome team"
        },
        "link": [{
            "rel": "http://schemas.google.com/g/2005#feed",
            "type": "application/atom+xml",
            "href": "http:\/\/googlechromereleases.blogspot.com\/feeds\/posts\/summary"
        }, {
            "rel": "self",
            "type": "application/atom+xml",
            "href": "http:\/\/www.blogger.com\/feeds\/8982037438137564684\/posts\/summary?alt=json\u0026max-results=0"
        }, {
            "rel": "alternate",
            "type": "text/html",
            "href": "http:\/\/googlechromereleases.blogspot.com\/"
        }, {
            "rel": "hub",
            "href": "http://pubsubhubbub.appspot.com/"
        }],
        "author": [{
            "name": {
                "$t": "laforge@chromium"
            },
            "uri": {
                "$t": "http:\/\/www.blogger.com\/profile\/05995691326314939344"
            },
            "email": {
                "$t": "noreply@blogger.com"
            },
            "gd$image": {
                "rel": "http://schemas.google.com/g/2005#thumbnail",
                "width": "16",
                "height": "16",
                "src": "http:\/\/img2.blogblog.com\/img\/b16-rounded.gif"
            }
        }],
        "generator": {
            "version": "7.00",
            "uri": "http://www.blogger.com",
            "$t": "Blogger"
        },
        "openSearch$totalResults": {
            "$t": "1824"
        },
        "openSearch$startIndex": {
            "$t": "1"
        },
        "openSearch$itemsPerPage": {
            "$t": "0"
        }
    }
});

There is says version 1.0

@ScottIsAFool
Copy link
Member

Ah, interesting. Thanks for this, it might prove very useful. @willduff

@martinwoodward
Copy link
Member

FYI - I know it's easy for the community to diss the Blogger team but they have been very responsive to us when we've asked for things and have always been very classy. I personally have nothing but good things to say about them.

I'd be fine with us using an older API that appears to be working as a temporary measure until we have a better API or we've built an algorithm to extract the data from existing supported API's as long as we code around it defensively (i.e. work on the assumption that the API might stop working at some point and fail quietly rather than crash the entire app or give lots of scary warnings to the user).

If someone wanted to take a go at doing it using the API above then this is where the logic would be called https://github.com/OpenLiveWriter/OpenLiveWriter/blob/master/src/managed/OpenLiveWriter.BlogClient/Clients/GoogleBloggerv3Client.cs#L312

@ScottIsAFool
Copy link
Member

@martinwoodward already on it ;)

@ScottIsAFool
Copy link
Member

ICanHazCategories
image

@ScottIsAFool
Copy link
Member

A WIP pull request is in #234

@Indy27
Copy link

Indy27 commented Dec 23, 2015

Wait, that ACTUALLY worked!? (or is that just Wordpress and y'all trying to fool us)

But what I was going to say was that the one @vhanla posted was for the API 1.0 how would that work anyway? Did Microsoft and other desktop editors used the 1.0 version when Blogger went 2.0 and it somehow still worked, or what?


Different problem but it really needs to be answered:

Limit for labels is 20 on Blogger, that's a fact. Why is that sometimes I have a post with 15 to 19 labels, this pops up:

The service blogger has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
We're sorry, but the value for field labels was not valid. [400]
Errors [
Message[We're sorry, but the value for field labels was not valid.] Location[ - ] Reason[invalid] Domain[global]
]

at Google.Apis.Requests.ClientServiceRequest`1.Execute()
at OpenLiveWriter.BlogClient.Clients.GoogleBloggerv3Client.NewPost(String blogId, BlogPost post, INewCategoryContext newCategoryContext, Boolean publish, String& etag, XmlDocument& remotePost)
at OpenLiveWriter.BlogClient.Blog.NewPost(BlogPost post, INewCategoryContext newCategoryContext, Boolean publish)
at OpenLiveWriter.PostEditor.UpdateWeblogAsyncOperation.DoWork()
at OpenLiveWriter.CoreServices.AsyncOperation.InternalStart()

Is it a label issue or a character issue (character issue being that no more than 200 letters, which was the case if you was inputting labels WHILE MAKING A POST but not the case at the post/page menu)

@ScottIsAFool
Copy link
Member

Here we go, this is better, multiple categories now working :)
image

@Indy27
Copy link

Indy27 commented Dec 23, 2015

I'll do a check then, brb.

@Indy27
Copy link

Indy27 commented Dec 23, 2015

image

Notice the category box has an exact number of 20 which is Blogger's label limit.

@ScottIsAFool
Copy link
Member

@Indy27 if you remove the last category, does it work?

@Indy27
Copy link

Indy27 commented Dec 23, 2015

Removed the last category.
Same error.

This HAS to be a character issue, which should not be happening unless you was labeling while making or editing a post.

@ScottIsAFool
Copy link
Member

I'm beginning to suspect it's the Google API libraries we're using because there's nothing wrong (that I can see) with what we're doing.

@Indy27
Copy link

Indy27 commented Dec 23, 2015

Just counted how many characters that image has and it's well over 200 characters. WLW never had that problem and I'm pretty sure the rest of the blog editors before the Blogger API switch either.

@Indy27
Copy link

Indy27 commented Dec 23, 2015

You could give this a try but dunno if it'll work but, what if there was a way to drag-and-drop labels instead of manually checking a box, as a way to save time.

@vhanla
Copy link
Contributor

vhanla commented Dec 23, 2015

Combined length of all labels should be 200 characters max.

bloggerlabelslengthlimit

@ScottIsAFool
Copy link
Member

So what would people prefer? For Writer to just remove any labels that take it over that limit? Or a warning before doing so?

@vhanla
Copy link
Contributor

vhanla commented Dec 23, 2015

Maybe disabling unchecked categories and disabling Add category input text too, but also showing a message below it or inside that input text.
olwbloggercategorylimit

Only if it reached that limit, it might also be the case where some other unchecked categories complete the maximum while others surpases so they would remain disabled, similary with the "add category" input text, limited to maximum letters according to remaining.

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Maybe to remove any label that takes it over the limit. But there should be a way to take off the limit anyway. I remember a trick where at the Pages screen you can check a page and add up to 20 labels WITHOUT worrying about character limit. That trick still works today. Even WLW used that trick before the software 'died'.

@jtbworld
Copy link

Testing now and find that opening an existing post with categories does not show the categories in OLW.

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Yeah @jtbworld is right. Tested this now, labels disappear when opening existing posts. Don't know if this was posts made before altering the labels code or what.

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Okay, so I made a draft post with labels, saved it to blogger, open new post, then went back to open the draft post. After getting past the 'Unable to Retrieve from Server' crap, it opened the post with same labels I gave it, so yeah, any saved posts containing labels you guys did before the category fix will show up without them.

@martinwoodward
Copy link
Member

Thanks @Indy27 - are you still getting that error message with 0.5.1.4?

@ScottIsAFool
Copy link
Member

@jtbworld Sorry, I should have updated my post with a newer installer https://ci.appveyor.com/api/buildjobs/19jjjw36d5kadqai/artifacts/Releases/OpenLiveWriterSetup.exe That is fixed.

@n0tb0dy
Copy link
Author

n0tb0dy commented Dec 24, 2015

All became very strange after upgrading to 0.1.5.4. In the program directory are preserved and the old version 0.1.5.3. When I run the old version (0.1.5.3) there appears a list of tags from my blog.

2015-12-24_165243

2015-12-24_165302

And when launch a new version (0.1.5.4) the list of labels disappears.

2015-12-24_165346

2015-12-24_165405

@ScottIsAFool
Copy link
Member

Had you been trying the category fix?

@n0tb0dy
Copy link
Author

n0tb0dy commented Dec 24, 2015

How to applay category fix?

@n0tb0dy
Copy link
Author

n0tb0dy commented Dec 24, 2015

How to completely remove OLW with all settings? Where OLW keep settings?

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Thanks @Indy27 - are you still getting that error message with 0.5.1.4?

Don't know cuz I'm still at 5.1.3 and neither the setup.exe to the main site nor appveyor upgrades to the new version nor the OLW I have now auto-update.

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Okay, never mind, it auto-updated when I click it in the Start Menu.

@Indy27
Copy link

Indy27 commented Dec 24, 2015

Tried 514, few problems:

  • Still have the 'Unable to Retrieve from Server' when you open up a saved or drafted post although you can just click it and the post will show anyway
  • No label list; uses Blogger-style way of labeling
  • Labels disappear when opening up saved posts from 5.1.3 (haven't tested 5.1.4)

@ScottIsAFool
Copy link
Member

@Indy27 you wont have the fixed labels unless you use the installer I mentioned earlier. What's the exact error you're getting for the retrieving from server error? can you post your log file?

@Indy27
Copy link

Indy27 commented Dec 25, 2015

@ScottIsAFool
Copy link
Member

@Indy27 The error you're seeing is being tracked with bug #96

@willduff
Copy link
Member

Thank you very much @ScottIsAFool for fixing this issue! You'll see this functionality in Open Live Writer the next time we push out an official version. It was fixed with pull request #234 - Support Blogger categories.

@ScottIsAFool
Copy link
Member

Thanks go to @vhanla for finding that endpoint to use :)

@DawnL43072
Copy link

thanks for the fix!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants