Error (only occurs when i try to send something from messenger) :
SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at MergeMapSubscriber.parseWebHookEvent [as project] (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\lib\core\helpers.js:69:26) at MergeMapSubscriber._tryNext (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\operators\mergeMap.js:122:27) at MergeMapSubscriber._next (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\operators\mergeMap.js:112:18) at MergeMapSubscriber.Subscriber.next (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\Subscriber.js:93:18) at EventEmitter.handler (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\observable\FromEventObservable.js:210:46) at emitOne (events.js:116:13) at EventEmitter.emit (events.js:211:7) at router.post (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\lib\core\Adapter.js:312:26) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at next (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:281:22 at Function.process_params (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:335:12) at next (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:275:10) at Function.handle (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:174:3) at router (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:47:12) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:317:13) at D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:335:12)
The connections work individually but dont mesh together like in the example and i used a Ngrok server to test
please advice cuz im quite new to node and angular My Code :
Error (only occurs when i try to send something from messenger) :
SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at MergeMapSubscriber.parseWebHookEvent [as project] (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\lib\core\helpers.js:69:26) at MergeMapSubscriber._tryNext (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\operators\mergeMap.js:122:27) at MergeMapSubscriber._next (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\operators\mergeMap.js:112:18) at MergeMapSubscriber.Subscriber.next (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\Subscriber.js:93:18) at EventEmitter.handler (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\node_modules\rxjs\observable\FromEventObservable.js:210:46) at emitOne (events.js:116:13) at EventEmitter.emit (events.js:211:7) at router.post (D:\Testing\testbroidfbandslack\node_modules\@broid\slack\lib\core\Adapter.js:312:26) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at next (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:281:22 at Function.process_params (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:335:12) at next (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:275:10) at Function.handle (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:174:3) at router (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:47:12) at Layer.handle [as handle_request] (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:317:13) at D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\Testing\testbroidfbandslack\node_modules\express\lib\router\index.js:335:12)