# Getting a error when trying to add my rep in experimental code column

**URL:** <https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714>\
**Category:** Ask for Help\
**Created:** [September 2, 2023, 1:10pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714 "2023-09-02T13:10:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 1:10pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/1 "2023-09-02T13:10:04Z")

</div>

Hi Everybody,

Trying to add a rep which I created but getting a error! Check this video : [Rep error.mp4 - Google Drive](https://drive.google.com/file/d/1Tpk4nUslzcEzop2eQ5-5SOD2LuC1HUQb/view?usp=sharing)

I hope that someone can help me! 😃

Thank you and Have a great day!

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:07pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/2 "2023-09-02T15:07:36Z")

</div>

Update :

Just tried again and the issue is solved!

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/5/453fc7bf70d83e04968af8fee553a87e1d361d34.png)

But getting a loading spinner and not giving me the result! Do you guys know whats the issue?

Thanks again!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2023, 3:11pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/3 "2023-09-02T15:11:46Z")

</div>

I’m just curious as to why you don’t just use a JavaScript column for this?

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:14pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/5 "2023-09-02T15:14:05Z")

</div>

Thanks Darren for replying!

I tried to use that but the **crypto.js** library is supported and did it like this!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/e/7e87c7b9c36d98f677da8f16927815fef99c812c.png)

If you know how to do this with JS column that would be great! Thanks again!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2023, 3:17pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/6 "2023-09-02T15:17:05Z")

</div>

Check the below:

> [@How to import code packages in the JavaScript column](https://community.glideapps.com/t/how-to-import-code-packages-in-the-javascript-column/34466):
>
> The [JavaScript column](https://www.glideapps.com/plugins/hell-yes-code) already includes [lodash](https://lodash.com/), which provides a value named \_ with many useful utility functions. lodash is the most popular JavaScript library in the world, so we included it by default even if you do not use it. @Jeff_Hager recently [requested](https://github.com/glideapps/glide-code-columns/issues/82) mathjs support in the JavaScript column. mathjs is another top JavaScript library, but including it by default means that every app that uses the JavaScript column would load this library as well, even though very few people need it. Tod…

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:24pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/7 "2023-09-02T15:24:35Z")

</div>

I checked that too but didn’t found the package for crypto.js. The progress bar doesn’t fully finish!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/4/e404556ec45dfa2f6292c808c54a76ac49c4a869.png)

Am I missing something?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2023, 3:35pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/8 "2023-09-02T15:35:41Z")

</div>

Did you try importing the cloudflare one?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2023, 3:39pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/9 "2023-09-02T15:39:09Z")

</div>

> [@Dilon\_Perera](#):
>
> But getting a loading spinner and not giving me the result! Do you guys know whats the issue?

Maybe because your function doesn’t actually return anything? 😉

 ![CleanShot 2023-09-02 at 23.38.04@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/8/08f611c8fe88a673621a06af4bd0deb7d595f082.png)

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:47pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/10 "2023-09-02T15:47:02Z")

</div>

Yep but without success!

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:47pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/11 "2023-09-02T15:47:33Z")

</div>

Hmm… What should I have to do? This doesn’t returns anything?

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 3:51pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/12 "2023-09-02T15:51:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/a/5a26dc89ef35c1d9c505a984c801274f6d2332c0.png)

```auto
import * as CryptoJS from 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.esm.js';

const message = 'hello';
const secretKey = 'secret';

const hmac = CryptoJS.HmacSHA1(message, secretKey);
const hashHex = CryptoJS.enc.Hex.stringify(hmac);

return hashHex;

```

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2023, 3:51pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/13 "2023-09-02T15:51:29Z")

</div>

You need a `return` statement.  
So instead of `console.log(hashHex)`, you should have `return hashHex`

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 4:06pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/14 "2023-09-02T16:06:22Z")

</div>

Tried that but still no luck 😶

Still the column is loading and getting a error a in replit!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1c3dd151bfe83aa3d48bb2d81e01a82480cc1972.png)

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 4:07pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/15 "2023-09-02T16:07:59Z")

</div>

With console.log() in replit :

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/6/a6f5219e2052ebb1a3a0baa20d3f26630ea0abce.png)

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 2, 2023, 4:24pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/16 "2023-09-02T16:24:04Z")

</div>

Here’s the URL which I used in the experimental code column : `https://hmac-sha1-result.dilonperera.repl.co`

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 3, 2023, 1:01pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/17 "2023-09-03T13:01:24Z")

</div>

Still no luck with this!

Darren, sorry if I disturbed you! Do you think that, this is a bug or a mistake I did?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 3, 2023, 1:07pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/18 "2023-09-03T13:07:33Z")

</div>

I don’t know.  
If you want to move your repo to GitHub, and then give me the repo link, I can clone it and have a play with it. I might be able to get it working 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 3, 2023, 2:48pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/19 "2023-09-03T14:48:51Z")

</div>

Darren, I moved to github but still gets the same issue!

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/4/d45dfc082ed636e82e0d9a303c75e99869ae0cca.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/8685b0f1c55a872648f7c664cd81ebd3225c4ed9.png)

URL I used in the experimental code column : `https://pereradilon9.github.io/HMAC-SHA1-converter/`

Am I correct with github?

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [September 3, 2023, 2:52pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/20 "2023-09-03T14:52:46Z")

</div>

I opened the URL in a browser and I’m getting the result I need when I checked the console! I guess something wrong with my JS code?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 3, 2023, 2:53pm UTC](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714/21 "2023-09-03T14:53:27Z")

</div>

I just forked it. I’ll take a look.

[Next page](https://community.glideapps.com/t/getting-a-error-when-trying-to-add-my-rep-in-experimental-code-column/65714.md?page=2)
