# Error Embedding

**URL:** https://meta.discourse.org/t/error-embedding/177504
**Category:** Support
**Created:** [January 28, 2021, 12:38am UTC](https://meta.discourse.org/t/error-embedding/177504 "2021-01-28T00:38:26Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [January 28, 2021, 1:07am UTC](https://meta.discourse.org/t/error-embedding/177504/4 "2021-01-28T01:07:44Z")

</div>

Your `discourseEmbedUrl` is still set to the URL of a topic on your Discourse site. It looks to me like that is the topic that you are wanting to create on Discourse, but you need to set it to the canonical URL of blog post that you are adding the code to.

Have a look at this topic for details: [Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963). Possibly what you are wanting to do is what is outlined in the [(Alternate Configuration) Linking to existing topics](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#alternate-configuration-linking-to-existing-topics) section of that topic. In that case, you need to add a `topicId` parameter to the script. That parameter should be set to the `id` of the existing Discourse topic that you’d like to use.

---

_[View the full topic](https://meta.discourse.org/t/error-embedding/177504)._
