# Hello world problem starting

**URL:** <https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900>\
**Category:** Extensions\
**Created:** [February 6, 2019, 8:28am UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900 "2019-02-06T08:28:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitportish](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@amitportish](https://discuss.dev.twitch.com/u/amitportish)\
**Post date:** [February 6, 2019, 8:28am UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/1 "2019-02-06T08:28:07Z")

</div>

Hi guys,

I’m stating up with building extension for twitch and naturally, Iv’e started with the hello world example.  
Unfortunately, it does not work properly.  
I have done all the tasks in the git including creating the SSL files and copying them to the conf folder.  
I’ve uploaded the hello world project on the rig  
It seems to run but the change color button is disabled.  
I’ve tried logging to the console at the beginning of the viewers.js and I cannot see the log.

Help please

 ![hellow_world_folder](https://d2opxh93rbxzdn.cloudfront.net/original/2X/c/cf4cf7dd0e7dae61e4c71f9a7f05301bf66cfa88.png) ![hello_world_run](https://d2opxh93rbxzdn.cloudfront.net/original/2X/9/9f1632c132c91619544c444d3fa444e24153e690.png)  
 ![hellow_world_rig](https://d2opxh93rbxzdn.cloudfront.net/original/2X/5/5d63099a87f8f77c158e151b59487cbd6c9a8cfa.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 6, 2019, 11:05am UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/2 "2019-02-06T11:05:30Z")

</div>

First lets move you to the proper developer rig.

The one you are using is deprecated.

Please obtain the native rig

> [@A New Direction for the Twitch Developer Rig](https://discuss.dev.twitch.com/t/a-new-direction-for-the-twitch-developer-rig/19565):
>
> Today (January 17, 2019), we’re announcing the steps we’re taking to improve the way we build and deliver the Developer Rig. Our mission is to help developers build the best Extensions possible, and we believe we can better serve our customers by taking development fully in-house and moving the Developer Rig to a closed source model. The immediate outcome of this strategic decision is the [native Developer Rig](https://discuss.dev.twitch.com/t/announcing-the-native-developer-rig-beta/19126), which is currently in beta. The native Rig combines a number of technical, UI, and usa…

---

<div class="post-metadata">

**Author:** ![amitportish](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@amitportish](https://discuss.dev.twitch.com/u/amitportish)\
**Post date:** [February 6, 2019, 1:38pm UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/3 "2019-02-06T13:38:24Z")

</div>

The thing is the instruction on the Hello World git are made for the old rig  
and not the new one.  
I’ve tried it anyhow, still ain’t working:  
each time I press the button I get:  
EBS request returned (error)

 ![new_rig](https://d2opxh93rbxzdn.cloudfront.net/original/2X/f/fbd0e98effbec4c948922d84280ac91cf7bf7084.png)  
and also can I see the result on a browser and not on the view of the rig?

---

<div class="post-metadata">

**Author:** ![bondad](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bondad/32/5793_2.png) [@bondad](https://discuss.dev.twitch.com/u/bondad)\
**Post date:** [February 9, 2019, 9:27pm UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/4 "2019-02-09T21:27:52Z")

</div>

Hello. I’m getting the same error with the Hello World Extension on the native Developer Rig (version 0.9.6).

When I start hosting the front end files, I see:

> GET /panel.html?anchor=panel&language=en&mode=viewer&state=testing&platform=web  
> GET /jquery-3.3.1.min.js  
> GET /viewer.js

When I activate the back-end service, I see:

> Using “\< ownerId \>” for ownerId  
> Using “\< secret \>” for secret  
> Using “\< clientId \>” for clientId  
> Server running at [https://localhost:8081](https://localhost:8081)

In Extension Views, when I click “Yes, I Would” to cycle the color, I see:

> panel $ Requesting a color cycle  
> panel $ EBS request returned (error)

When I visit **[https://localhost:8081/](https://localhost:8081/)**, I see:

> {“statusCode”:404,“error”:“Not Found”,“message”:“Not Found”}

Not exactly sure how to debug this, I’m going to try but sharing this info in hopes someone might spot the issue sooner than I can crack it. Thank you!

---

<div class="post-metadata">

**Author:** ![bondad](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bondad/32/5793_2.png) [@bondad](https://discuss.dev.twitch.com/u/bondad)\
**Post date:** [February 9, 2019, 10:01pm UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/5 "2019-02-09T22:01:32Z")

</div>

Update! I got it working. In `viewer.js` in the public folder, I made a change to the `url` value on line 18 to hardwire `https:` rather than passing in `location.protocol`

```
function createRequest(type, method) {

    return {
        type: type,
        // url: location.protocol + '//localhost:8081/color/' + method,
        url: 'https://localhost:8081/color/' + method,
        success: updateBlock,
        error: logError
    }
}

```

Maybe we missed a step along the way somewhere in the setup that would have set this as https via `location.protocol`? Thanks.

---

<div class="post-metadata">

**Author:** ![cidzerda](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/cidzerda/32/4589_2.png) [@cidzerda](https://discuss.dev.twitch.com/u/cidzerda)\
**Post date:** [February 13, 2019, 9:13pm UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/6 "2019-02-13T21:13:40Z")

</div>

The Hello World example extension front end assumes the protocol used to host the back end is the same as that used to host the front end. The Developer Rig hosts the Hello World example extension front end using the `http:` protocol (no SSL). If you delete the `conf` folder, the back end will run without SSL and be accessible using the `http:` protocol.

---

<div class="post-metadata">

**Author:** ![amitportish](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@amitportish](https://discuss.dev.twitch.com/u/amitportish)\
**Post date:** [February 14, 2019, 9:00am UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/7 "2019-02-14T09:00:36Z")

</div>

> [@bondad](#):
>
> url: ‘[https://localhost:8081/color/](https://localhost:8081/color/)’ + method,

Thanks, that work.  
How can I fix my ssl files so it would work on https

And how can I see the views in a browser? I manage to see them only on the rig app.  
[https://localhost.rig.twitch.tv:8080/video\_component.html](https://localhost.rig.twitch.tv:8080/video_component.html) does not work

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 14, 2019, 11:20am UTC](https://discuss.dev.twitch.com/t/hello-world-problem-starting/19900/8 "2019-02-14T11:20:07Z")

</div>

> [@amitportish](#):
>
> Thanks, that work.

It’s 8081 not 8080. If the 8081 worked.

[https://localhost.rig.twitch.tv:8081/video\_component.html](https://localhost.rig.twitch.tv:8081/video_component.html)
