DEV Community

Discussion on: Build a Scalable Video Chat App with Agora in Django

 
sohanurshanto profile image
sohanur-shanto

PUSHER_APP_ID= '1213947'
PUSHER_APP_KEY='2782f26c53ee13fb1ca2'
PUSHER_APP_SECRET= '8430a8454b6461e5e68e'
PUSHER_APP_CLUSTER= 'ap3'

AGORA_APP_ID= 'c00816fe3db3414584e35532dc2c43ae'
AGORA_APP_CERTIFICATE= '1c7ba4845b4945f0b9c6fe2a74835d70'

I cloned your github repo. rename the file .env.example to .env and save those credentials.
give me a solution man.

Thread Thread
 
mupati profile image
Kofi Mupati

found the error. I made a mistake in the env variable names. I should be the following instead

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=
PUSHER_CLUSTER=
AGORA_APP_ID=
AGORA_APP_CERTIFICATE=

I've updated the post with the right ones.

Thread Thread
 
sohanurshanto profile image
sohanur-shanto

which post? can you share the link? This will be great

Thread Thread
 
sudarshanbb profile image
Sudarshan

You got any solution for the same or any link ,please share me

Thread Thread
 
mupati profile image
Kofi Mupati

@sohanurshanto I made errors in the environment variable names. I've shared the correct one in this thread. I've also updated this same article to correct the mistake.

Thread Thread
 
sudarshanbb profile image
Sudarshan

thanks

Thread Thread
 
sudarshanbb profile image
Sudarshan

Hello brother ,I am still stuck on one problem. When I am login through admin panel site window will be there but status of offline to online not converting ,please help me out friend .I am sending you screenshot also

Thread Thread
 
mupati profile image
Kofi Mupati • Edited

There's a mistake. In the index.html file, Replace 420e941c25574fda6378 with your own Pusher ID. The one over there is mine. I've updated the article to include this. The online status should work after that.

      window.pusher = new Pusher("420e941c25574fda6378", {
        authEndpoint: "{% url 'agora-pusher-auth' %}",
        auth: {
          headers: {
            "X-CSRFToken": "{{ csrf_token }}",
          },
        },
      });
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
sudarshanbb profile image
Sudarshan

Hello , I changed the pusher key to mine but still it not changes its status from offline to online. Can you please check ones again what is the mistake and if possible please send us demo video with full tutorial its lot for us, thank you

Thread Thread
 
mupati profile image
Kofi Mupati

check whether the environment variable names in your env file match with what you have in the views. I made some mistakes with that which I've corrected.

You can go through the article once more.