"Maximum call stack size exceeded" for bookmark

Fill out the following bug report template with as much detail as possible!

Are you sure this is a bug? If you just need help, post in the developer help category. If it’s a feature request, head to the ideas category.


Issue Summary

  • Adding a /bookmark or a link to another post is not parsing the link and showing a fancy box with the bookmark.

This is supposed to be what I am seeing:

But when I link to my own post, it shows just the link:

In the editor, when I use the /bookmark command and paste in the link, I get the following message:

"Maximum call stack size exceeded"

Clicking ‘Retry’ doesn’t work.

Steps to Reproduce

In the editor, while creating or editing a post.

  1. Paste link from another post in.
    OR
  2. Type /bookmark, then enter the URL into the box provided. Press enter.
  3. Error shows up.

Setup information

Ghost Version
5.0.2

Node.js Version
v16.15.0

How did you install Ghost?
Official Docker image on Plesk
ghost:5.0.2

Provide details of your host & operating system
Hetzner dedicated server, running Proxmox with the following VM:
OS: Debian 10.12 running Plesk 18.0.43.1

Database type
sqlite3

Browser & OS version
Windows 11 22H2 (Build 22621)
Vivaldi Browser - 5.2.2623.48 (Stable channel) (64-bit)

Relevant log / error output
In console, the following comes up:

GET https://padraig.blog/ghost/api/admin/oembed/?url=https%3A%2F%2Fpadraig.blog%2Fhow-to-install-ghost-5-on-plesk-obsidian%2F&type=bookmark 403

Docker Console Log:

[2022-05-28 09:05:15] e[31mERRORe[39m "GET /ghost/api/admin/oembed/?url=https%3A%2F%2Fpadraig.blog%2Fhow-to-install-ghost-5-on-plesk-obsidian%2F&type=bookmark" e[33m403e[39m 600ms
e[31m
e[31mResponse code 403 (Forbidden)e[39m

e[1me[37mError ID:e[39me[22m
    e[90m49f44090-de65-11ec-b848-eb15489234eee[39m

e[90m----------------------------------------e[39m

e[90mHTTPError: Response code 403 (Forbidden)
    at module.exports.prepareError (/var/lib/ghost/versions/5.0.2/node_modules/@tryghost/mw-error-handler/lib/mw-error-handler.js:79:19)
    at EventEmitter.<anonymous> (/var/lib/ghost/versions/5.0.2/node_modules/got/source/as-promise.js:74:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)e[39m
e[39m
[2022-05-28 09:05:21] e[36mINFOe[39m "GET /" e[36m301e[39m 2ms
NotFoundError: Page not found
NotFoundError: Page not found

Any help would be appreciated. Thanks in advance! :)

1 Like

There were a few issues with cards this week - please update to >5.1.0 and let us know if the issue persists

Hi John.
Thanks for that :)

I updated the docker container to 5.1.1 this morning and still cannot do /bookmark correctly.

GET https://padraig.blog/ghost/api/admin/oembed/?url=https%3A%2F%2Fpadraig.blog%2Fhow-to-install-ghost-5-on-plesk-obsidian%2F&type=bookmark 403

Docker Log:

[2022-06-01 12:34:33] [31mERROR[39m Encountered error when fetching oembed
[31m
[31mEncountered error when fetching oembed[39m

[1m[37mError ID:[39m[22m
    [90m30e84840-e1a7-11ec-9314-e900ab734d58[39m

[90m----------------------------------------[39m

[90mHTTPError: Response code 403 (Forbidden)
    at OEmbed.fetchOembedDataFromUrl (/var/lib/ghost/versions/5.1.1/core/server/services/oembed.js:335:27)
    at EventEmitter.<anonymous> (/var/lib/ghost/versions/5.1.1/node_modules/got/source/as-promise.js:74:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)[39m
[39m
[2022-06-01 12:34:33] [31mERROR[39m "GET /ghost/api/admin/oembed/?url=https%3A%2F%2Fpadraig.blog%2Fhow-to-install-ghost-5-on-plesk-obsidian%2F" [33m422[39m 162ms
[31m
[31mNo provider found for supplied URL.[39m

[37m"https://padraig.blog/how-to-install-ghost-5-on-plesk-obsidian/"[39m

[1m[37mError ID:[39m[22m
    [90m30e86f50-e1a7-11ec-9314-e900ab734d58[39m

[90m----------------------------------------[39m

[90mValidationError: No provider found for supplied URL.
    at OEmbed.unknownProvider (/var/lib/ghost/versions/5.1.1/core/server/services/oembed.js:96:15)
    at OEmbed.fetchOembedDataFromUrl (/var/lib/ghost/versions/5.1.1/core/server/services/oembed.js:341:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
1 Like

I created a new Docker container on Version 5.2.2 and I tried to do this without ANY modifications.

The issue looks to be TLD based, as per this screenshot.

ALL the other sites are also running on the same server, using Docker, all on the latest version.

I am seeing the same thing with medium blogs. idea what could be causing this?