# Discobot didn't recognize link in tutorial

**URL:** https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146
**Category:** Bug
**Tags:** discobot
**Created:** [June 6, 2022, 1:21pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146 "2022-06-06T13:21:10Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [June 6, 2022, 1:21pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/1 "2022-06-06T13:21:10Z")

</div>

I was going through the Discobot tutorial on the [Gitcoin forum](https://gov.gitcoin.co). It made me copy/paste a link out of three. Did that, Discourse expanded the link, but Discobot didn’t recognize the link. I was on the desktop:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/d/b/edbbfed1bb8c32d6e3571ac10929afc14724c345.png)

When I tried to flag that Discobot message to a moderator as Something else, with the message `Discobot bug`, I got another incorrect error:

> Sorry, you can’t include links in your posts.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 6, 2022, 1:48pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/2 "2022-06-06T13:48:28Z")

</div>

> [@dandv](#):
>
> When I tried to flag that Discobot message to a moderator as Something else, with the message `Discobot bug`, I got another incorrect error:
> 
> > Sorry, you can’t include links in your posts.

This sounds like they’ve upped the trust level for `min trust to post links`, but haven’t tuned discobot to their custom setup. I’ve just had a test run-through on my test site and Discobot appreciated the coconut link I oneboxed for him, so they may also have tweaked something for the oneboxes on that site as well?

Have you contacted the admin there to raise these quirks?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 9, 2022, 10:10am UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/3 "2022-08-09T10:10:20Z")

</div>

I had the same issue on another site. I can replicate it here and at try. The problem only occurs if I only paste the link into the reply to discobot. Adding a line of text above resolves the problem and discobot detects the link.

> **Link to my conversation with discobot**
>
> [https://meta.discourse.org/t/235575](https://meta.discourse.org/t/235575)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 9, 2022, 10:26am UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/4 "2022-08-09T10:26:56Z")

</div>

I’ve just had another go, and this time Discobot did not like my coconut link. :thinking:

Let’s slide this over to #Contribute > Bug

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 9, 2022, 2:13pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/5 "2022-08-09T14:13:28Z")

</div>

I had another thought as I was confused why it worked on my first run-through and then didn’t on the lastest from today, so I spun up a brand new site as I think I used a fresh one the last time round - and this time discobot did appreciate my coconut link. :tada: :slight_smile:

I then belatedly remembered that [safe mode](https://meta.discourse.org/t/53504?silent=true) existed…

And I tried it on my original test site with [safe mode](https://meta.discourse.org/t/53504?silent=true) enabled, and requested a new tutorial, and this time he also liked my onebox as well. :tada: :slightly_smiling_face:

So I’m guessing it must be a conflict with a plugin or theme component. I do have quite a few of the official ones so it may be easier to look through the ones on the other site. I’ll keep digging. :+1:

* * *

**Update:** No, now it just seems to work every time no matter what. :thinking: @Moin, can you give me a specific set of repro steps where it consistently doesn’t work for you?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 9, 2022, 4:47pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/6 "2022-08-09T16:47:27Z")

</div>

I think I can repro it. It seems to Discobot only have problem with new links. So if you try with the same link again, Discobot can recognize. :slightly_smiling_face:

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 9, 2022, 5:15pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/7 "2022-08-09T17:15:51Z")

</div>

It has worked first time for me a few times. On the fresh new site it just worked. :man_shrugging: And I’ve just signed up to [try.discourse.org](http://try.discourse.org) and it worked there too:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/c/0/1c0edd583956b7f905370d1b8d5a403a7c362562.png)

I’ve tried ctrl+v as well as right-click paste, but I can’t replicate it again after the one from this morning on any site I’ve tried. I’m not sure what I’m missing? If anyone can help me flesh out a step-by-step I would be most grateful. :slight_smile:

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 9, 2022, 7:23pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/8 "2022-08-09T19:23:13Z")

</div>

That would explain why it worked when I tried after @JammyDodger asked for steps. I also tried at try a lot of times today. Since the default language is english, I always tried with the english links. Now I changed the interface language to german. And [Antiwitz – Wikipedia](https://de.wikipedia.org/wiki/Antiwitz) and [Exotische Kurzhaarkatze – Wikipedia](https://de.wikipedia.org/wiki/Exotische_Kurzhaarkatze) both were not detected.  
@JammyDodger you could try a different language. In german you start the tutorial with `@discobot starte tutorial`. I will not use the other two german links for testing at try.

I don’t think it’s important but I use my android smartphone with chrome for testing

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 9, 2022, 7:29pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/9 "2022-08-09T19:29:33Z")

</div>

Yes, you’re right. :slightly_smiling_face: Really strange… It is just seems but yeah I think the new links partly cause it. My old android phone tricked me. :smiley: It is probably cause by timing while Discobot reply. Sometimes links need longer time to be oneboxed. Discobot reply is maybe sometimes too fast in this case and can’t find onebox. Cached and most of links works great because these are almost immediately oneboxed but which for example contains image might take longer time.

I can replicate it on [try.discourse.org](http://try.discourse.org) too with other link which contains image.  
I posted it before the link is oneboxed on composer preview side.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 9, 2022, 9:07pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/10 "2022-08-09T21:07:57Z")

</div>

I tried with the German locale, but that worked first time too. :man_shrugging: I think @Don’s idea is looking promising though. :slight_smile:

I will pick this up again tomorrow and see if it can be consistently repro’d. Thanks very much to both of you for your efforts so far. :+1:

---

<div class="post-metadata">

### Author: ![Kyle\_Pollock](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_pollock/32/262774_2.png) [@Kyle\_Pollock](https://meta.discourse.org/u/Kyle_Pollock)
#### Post date: [August 31, 2022, 10:41pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/11 "2022-08-31T22:41:54Z")

</div>

Thanks @JammyDodger, I have they same problem as well. They do seem to be sticking, but none of these are being accepted as the correct replies.

 ![Screen Shot 2022-08-31 at 3.30.24 PM](https://global.discourse-cdn.com/meta/original/4X/9/f/2/9f2bf9049280f8667e0aba34305758a7e728c698.png)  
 ![Screen Shot 2022-08-31 at 3.34.32 PM](https://global.discourse-cdn.com/meta/original/4X/3/2/5/3258050999853986383bf49cb8965174a216e8a7.png)  
 ![Screen Shot 2022-08-31 at 3.34.35 PM](https://global.discourse-cdn.com/meta/original/4X/b/f/c/bfc620ec740897e656af80e3d410b098b97ba47c.png)

---

<div class="post-metadata">

### Author: ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)
#### Post date: [September 3, 2022, 11:21am UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/12 "2022-09-03T11:21:11Z")

</div>

I’m having the same behaviour too.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 3, 2022, 1:10pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/13 "2022-09-03T13:10:25Z")

</div>

> [@Kyle\_Pollock](#):
>
> Thanks @JammyDodger, I have they same problem as well. They do seem to be sticking, but none of these are being accepted as the correct replies.

Just to check, do your custom links generate a onebox? If not then I don’t think they’ll be suitable for swopping in.

> [@Noah](#):
>
> I’m having the same behaviour too.

I hit this with extra frequency during a test run on another site and used @moin’s workaround to get past it. I still have no definitive repro steps though, so no further insight.

As a more ‘built in’ workaround you could include a similar blurb to the quote stage where you ask the user to include some text above the attempted onebox? It’s not ideal though.

---

<div class="post-metadata">

### Author: ![Kyle\_Pollock](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_pollock/32/262774_2.png) [@Kyle\_Pollock](https://meta.discourse.org/u/Kyle_Pollock)
#### Post date: [September 7, 2022, 6:28pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/14 "2022-09-07T18:28:14Z")

</div>

Thanks, yes they should generate a onebox. They are all direct links back to our discourse content, so they should all be eligible.

Edit: Following up here again @JammyDodger, these are links to discourse for our own website so they should generate a onebox.

Is there a another required place for the admin to paste the links that should be accepted as answers or this should work altogether? (e.g. Listing the links & answers).

Thanks,

---

<div class="post-metadata">

### Author: ![wbs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wbs/32/291579_2.png) [@wbs](https://meta.discourse.org/u/wbs)
#### Post date: [February 1, 2023, 1:00pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/15 "2023-02-01T13:00:21Z")

</div>

I had this problem on F droid discourse and signed up here and same result. I used this phone as an active member on Leia Loft discourse and never had a problem.

---

<div class="post-metadata">

### Author: ![wbs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wbs/32/291579_2.png) [@wbs](https://meta.discourse.org/u/wbs)
#### Post date: [February 1, 2023, 1:24pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/16 "2023-02-01T13:24:10Z")

</div>

Strange I switched to my other Hydrogen One phone and it worked first try. Same phone both on Microsoft Edge browser. It must be something in my settings because I am using F Droid and experimental apps and third party stuff I would never use on my main phone.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [October 8, 2024, 9:32pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/17 "2024-10-08T21:32:54Z")

</div>

> [@Discourse Chatbot robot](https://meta.discourse.org/t/discourse-chatbot/256652/948):
>
> In Discourse, there’s a slight delay in images being fully reflected in a Post’s data so if the bot replies too quickly it can miss seeing that there’s an image

I wonder if this is also the cause of the problem here.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [February 18, 2025, 3:05pm UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/18 "2025-02-18T15:05:34Z")

</div>

I had this recently happen to me on a test site I was visiting. I was able to replicate it once as well. But I can’t replicate it after deleting the account and signing up again, or starting the tutorial by writing a PM to discobot containing words “start tutorial”.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [February 25, 2025, 3:09am UTC](https://meta.discourse.org/t/discobot-didnt-recognize-link-in-tutorial/229146/19 "2025-02-25T03:09:46Z")

</div>

I’ve merged a fix for that now:

[https://github.com/discourse/discourse/pull/31472](https://github.com/discourse/discourse/pull/31472)

The problem happened when responding with the link before our composer preview could onebox the link. Now we do a much simpler check for the example links when doing this step.
