openchat icon indicating copy to clipboard operation
openchat copied to clipboard

Automatically embed YouTube videos when a link is sent

Open ankitjain28may opened this issue 8 years ago • 16 comments

Its quite easy and interesting.

ankitjain28may avatar Jul 04 '17 05:07 ankitjain28may

@ankitjain28may assign to me please, I'll try.

lex111 avatar Sep 28 '17 19:09 lex111

Ya sure..!

ankitjain28may avatar Sep 28 '17 20:09 ankitjain28may

I have an error when trying to send a message, do not know what might be the reason?

...
New connection! (180)
PHP Notice:  Undefined property: stdClass::$name in /home/lex/repos/openchat/src/Chat.php on line 140
PHP Stack trace:
PHP   1. {main}() /home/lex/repos/openchat/cmd.php:0
PHP   2. Ratchet\Server\IoServer->run() /home/lex/repos/openchat/cmd.php:19
PHP   3. React\EventLoop\StreamSelectLoop->run() /home/lex/repos/openchat/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php:85
PHP   4. React\EventLoop\StreamSelectLoop->waitForStreamActivity() /home/lex/repos/openchat/vendor/react/event-loop/src/StreamSelectLoop.php:201
PHP   5. call_user_func:{/home/lex/repos/openchat/vendor/react/event-loop/src/StreamSelectLoop.php:232}() /home/lex/repos/openchat/vendor/react/event-loop/src/StreamSelectLoop.php:232
PHP   6. React\Socket\Connection->handleData() /home/lex/repos/openchat/vendor/react/event-loop/src/StreamSelectLoop.php:232
PHP   7. React\Socket\Connection->emit() /home/lex/repos/openchat/vendor/react/stream/src/Stream.php:170
PHP   8. call_user_func_array:{/home/lex/repos/openchat/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php:64}() /home/lex/repos/openchat/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php:64
PHP   9. Ratchet\Server\IoServer->handleData() /home/lex/repos/openchat/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php:64
PHP  10. Ratchet\Http\HttpServer->onMessage() /home/lex/repos/openchat/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php:113
PHP  11. Ratchet\WebSocket\WsServer->onMessage() /home/lex/repos/openchat/vendor/cboden/ratchet/src/Ratchet/Http/HttpServer.php:53
PHP  12. Ratchet\WebSocket\Version\RFC6455->onMessage() /home/lex/repos/openchat/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php:96
PHP  13. ChatApp\Chat->onMessage() /home/lex/repos/openchat/vendor/cboden/ratchet/src/Ratchet/WebSocket/Version/RFC6455.php:204
Invalid Authentication

lex111 avatar Sep 30 '17 20:09 lex111

Hey, I will update the readme with latest configuration that will help you to start with this project. I hope this error wont occur then.

ankitjain28may avatar Sep 30 '17 21:09 ankitjain28may

Ok I will wait.

lex111 avatar Oct 01 '17 07:10 lex111

@lex111 Thanks, will update it today

ankitjain28may avatar Oct 01 '17 08:10 ankitjain28may

Hey, You can start working, I have updated the repo.

ankitjain28may avatar Oct 01 '17 13:10 ankitjain28may

Not work for me. Although the folder is created

error: <class 'xmlrpclib.Fault'>, <Fault 92: "CANT_REREAD: The directory named as part of the path ~/repos/openchat/openchat_supervisor.log does not exist. in section 'program:devserver' (file: '/etc/supervisor/conf.d/devserver.conf')">: file: /usr/lib/python2.7/xmlrpclib.py line: 800

lex111 avatar Oct 01 '17 18:10 lex111

hey try to see the logs in openchat_supervisor.log file

ankitjain28may avatar Oct 01 '17 18:10 ankitjain28may

Is it empty there, but without a supervisor it will not work?

lex111 avatar Oct 01 '17 18:10 lex111

hey, you have entered you external ip in the config files

ankitjain28may avatar Oct 01 '17 18:10 ankitjain28may

Are you on skype so that i can help you

ankitjain28may avatar Oct 01 '17 18:10 ankitjain28may

I set it up, but the error is different. It would be nice, for example, to have a Docker here

lex111 avatar Oct 01 '17 19:10 lex111

I'll definitely integrate docker when i will learn it, but for now you need to deploy it on your local system, ok one more way... have you changed all the url with your external ip as being defined in the readme.

  1. Open terminal and enter php cmd.php
  2. Open another terminal window and enter php -S external_ip:8888
  3. It will start running at external_ip:8888

ankitjain28may avatar Oct 01 '17 19:10 ankitjain28may

@ankitjain28may I would like to work on this.

hiteshpr avatar Dec 19 '17 03:12 hiteshpr

@hiteshpr This is almost completed.

ankitjain28may avatar Dec 19 '17 04:12 ankitjain28may