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
title and content is not being added to post BLOGGER #1139
Comments
Greetings! I just gave this a shot over in #1140, and it appears to be working as expected. Are you sure the blog post is getting created at all? It looks like you're ignoring errors in the callback. I would change the callback to at least let you know if something else went wrong :) blogger.posts.insert({
auth: oauth,
blogId: "7525914434133284870",
resource: {
content: "postContent",
title: "postTitle",
},
}, function(err, success) {
if (err) {
console.error('There was a problem creating the blog post!');
console.error(err);
return;
}
console.log(success);
}); Can you also share the output of |
here is the output which I get: (it is clear in the output too that the field of the title and the content is empty even I have included in the code)
|
Aiight, that's good at least. I'm sorry for asking this - but can you make 100% sure the title and content you're passing to the API isn't in fact blank? Just add a little console.log magic to make 100% sure? Alright - a few other things to check:
|
the node version is |
Can you try upgrading to the latest version? I think we're on 29 now :) |
I have upgraded to latest version but still it is posting empty post to blogger. |
I'm running out of ideas here 🤣 I merged #1140 earlier - can you clone the repo, and try running that sample? |
ok let me try |
I have run the sample and got this error |
Ok I have fixed it. Now it is working properly. thanks very much to you for your time and help. |
I have question that, it would requires me to choose account for every single post. is it possible in anyway that I only have to select account in browser for only once for multiple posts. |
I am having an issue with blogger api. When I try to publish a post to my blogger, the empty post got published. No title or content get included in it. Below is the code:
The text was updated successfully, but these errors were encountered: