# N8n Ghost node - Create Post Image Issues

**URL:** <https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024>\
**Category:** Developer help\
**Created:** [September 5, 2024, 6:11am UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024 "2024-09-05T06:11:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 6:11am UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/1 "2024-09-05T06:11:18Z")

</div>

Hello,

I am trying to setup a flow within n8n to post blog posts for me.

I am currently using a method to generate an image through dall-e and then uploading that image to Google Drive (Folder set to share to anyone with a link).

When setting up the Ghost node, I input title, content author etc - everything seems to be working. I populate the Open Graph Image with the webContentLink attribute form my Google Drive step (and I’ve tried a lot of the others). The post goes through but I can never get the image to display.

Can anyone help me here? And what details would you need from me?

---

<div class="post-metadata">

**Author:** ![Raki](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/raki/32/40808_2.png) [@Raki](https://forum.ghost.org/u/Raki)\
**Post date:** [September 5, 2024, 6:20am UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/2 "2024-09-05T06:20:31Z")

</div>

How do you put the imagr link into posts?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 1:02pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/3 "2024-09-05T13:02:42Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 1:03pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/4 "2024-09-05T13:03:20Z")

</div>

{ “posts”: [{ “feature\_image”: “[https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download](https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download)” }] }

But i am getting a an error:

Header name must be a valid HTTP token [“content-type: application/json”]

Error details

From HTTP Request

Error code

`ERR_INVALID_HTTP_TOKEN`

Request

```auto
{ "headers": { "content-type: application/json": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "Authorization": " **hidden**" }, "method": "POST", "uri": "https://nerdic.ghost.io/ghost/api/v3/admin/posts/66d95588abb1020001375fa1", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "body": { "posts": { "feature_image": "{ \"posts\": [{ \"feature_image\": \"https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download\" }] }" } }, "encoding": null, "json": false, "useStream": true }

```

Other info

Item Index

`0`

Node type

`n8n-nodes-base.httpRequest`

Node version

`4.2 (Latest)`

n8n version

`1.57.0 (Self Hosted)`

Time

`05/09/2024, 11:51:45`

Stack trace

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 1:04pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/5 "2024-09-05T13:04:06Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 1:11pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/6 "2024-09-05T13:11:42Z")

</div>

I am trying the following but getting an error as below:

**Method**

URL:

[https://nerdic.ghost.io/ghost/api/v3/admin/posts/](https://nerdic.ghost.io/ghost/api/v3/admin/posts/){{ $json.id }}

[https://nerdic.ghost.io/ghost/api/v3/admin/posts/66d95588abb1020001375fa1](https://nerdic.ghost.io/ghost/api/v3/admin/posts/66d95588abb1020001375fa1)

(GHOST ADMIN AUTHENTICATION)

**Header Parameters**

Name: Content-Type: application/json

Value: application/json

**Send Body**

Body Content Type: JSON

Name:

{ “posts”: [{ “feature\_image”: “{{ $(‘Google Drive’).item.json.webContentLink }}” }] }

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 1:14pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/7 "2024-09-05T13:14:44Z")

</div>

{ “posts”: [{ “feature\_image”: “[https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download](https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download)” }] }

I am getting the following error:

Error code

ERR\_INVALID\_HTTP\_TOKEN

Request

{ “headers”: { “content-type: application/json”: “application/json”, “accept”: “application/json,text/html,application/xhtml+xml,application/xml,text/_;q=0.9, image/_;q=0.8, _/_;q=0.7”, “Authorization”: “ **hidden** ” }, “method”: “POST”, “uri”: “[https://nerdic.ghost.io/ghost/api/v3/admin/posts/66d95588abb1020001375fa1](https://nerdic.ghost.io/ghost/api/v3/admin/posts/66d95588abb1020001375fa1)”, “gzip”: true, “rejectUnauthorized”: true, “followRedirect”: true, “resolveWithFullResponse”: true, “followAllRedirects”: true, “timeout”: 300000, “body”: { “posts”: { “feature\_image”: “{ "posts": [{ "feature\_image": "[https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download\](https://drive.google.com/uc?id=10o6rb7WwX9II8AUWR5OaneKgeSESFiIr&export=download%5C)” }] }" } }, “encoding”: null, “json”: false, “useStream”: true } Other info

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 5, 2024, 1:30pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/8 "2024-09-05T13:30:19Z")

</div>

That error looks like an authentication problem, not a problem with the image, but just to confirm, can you try using an image that isn’t in Google Drive? Do you still get that error, or is it unique to using Google drive?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 2:29pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/9 "2024-09-05T14:29:09Z")

</div>

Well with the picture being jammed directly into the featured image, I might be able to forego the entire process of uploading to Google Cloud for hosting entirely.  
So I’ll try that once I am back at the wheel.

Previously I tried taking pictures directly from the output, but they weren’t being put into the feature image and thereby not hosted. Then I tried to upload them to airtable and that worked but the URLs died after a few hours. So I was back at it with Google. Then this no feature image aspect of the Ghost node made me to the direct API - and that might be able to jam it directly into the feature image and host it on Ghost instead.  
If not I’ll try a different method of generating an image through Replicate with an api call instead - that yielded better results on Lindy.ai.  
And while Lindy is certainly capable, it’s seems incredibly expensive to run.

---

<div class="post-metadata">

**Author:** ![LATECODER](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/latecoder/32/26387_2.png) [@LATECODER](https://forum.ghost.org/u/LATECODER)\
**Post date:** [September 5, 2024, 2:54pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/10 "2024-09-05T14:54:38Z")

</div>

That Google Drive image cant be displayed until you get authenticated on Google Drive. Its not the BEST way to embed an image…

---

<div class="post-metadata">

**Author:** ![Sebastian\_Krogh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sebastian_krogh/32/32006_2.png) [@Sebastian\_Krogh](https://forum.ghost.org/u/Sebastian_Krogh)\
**Post date:** [September 5, 2024, 4:56pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/11 "2024-09-05T16:56:58Z")

</div>

Okay then what’s a better way? :) eager to learn more and more as each day goes.

My Google Cloud app is reviewed and accepted - so. But not fond of the method regardless

---

<div class="post-metadata">

**Author:** ![LATECODER](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/latecoder/32/26387_2.png) [@LATECODER](https://forum.ghost.org/u/LATECODER)\
**Post date:** [September 5, 2024, 5:29pm UTC](https://forum.ghost.org/t/n8n-ghost-node-create-post-image-issues/50024/12 "2024-09-05T17:29:22Z")

</div>

> **[How to Embed Images from Google Drive on your Website - Digital Inspiration](https://www.labnol.org/google-drive-image-hosting-220515/)**
>
> This tutorial describes how you can display images stored in your Google Drive on your website or emails. All image files on Drive have a high-resolution thumbnail that you can embed into any webpage.
