Comments (6)
same issue on ubuntu 18.04, fresh install when trying to generate hangouts-registration.yaml file with node index.js -r -u "http://127.0.0.1:8090"
from matrix-puppet-hangouts.
@hooger @ericmigi , would you both run node --version
? This could be caused by an old node version (node 10 is known to work, we expect node 8 does too, but no earlier version, and node is packaged strangely on Debian-based distributions by default)
from matrix-puppet-hangouts.
root@matrix-synapse:~# node -v
v8.10.0
from matrix-puppet-hangouts.
@hooger @ericmigi Would you pull the latest master, which includes that commit up there, and test again?
I was able to reproduce this on node 8, using the REPL in Docker's official node 8 image:
> docker run -i -t --rm node:8-alpine node
> try {
... var data = JSON.parse(str);
... debugVerbose("emitting message", data);
... this.emit('message', data);
... } catch {
} catch {
^
SyntaxError: Unexpected token {
>
I've gathered that, while try { } catch { }
works in node 10 and node 11, try { } catch(error) { }
is required in node 8, so I've added the parameter to appease it.
from matrix-puppet-hangouts.
(Heard that this was working outside my REPL, woo!)
from matrix-puppet-hangouts.
My node is 9.x and it works for me as well.
Thank you for the help!
from matrix-puppet-hangouts.
Related Issues (20)
- Support multiple users HOT 1
- Add support for matrix-puppet-server HOT 3
- Messages from bridge not going out to hangouts HOT 1
- Bridge update HOT 3
- Asyncio line gives SyntaxError: invalid syntax HOT 1
- Random crashes
- "please implement sendReadReceiptAsPuppetToThirdPartyRoomWithId" HOT 3
- Authorization code cookie not found (javascript needed error in lynx) HOT 1
- crash after changing room name HOT 1
- crash with rapid message send / respond HOT 3
- Req: `-c` and `--config` to provide path to config.json HOT 1
- Req: Interpret mentions from Hangouts users
- SyntaxError: Unexpected token { HOT 1
- Token creation fail is the cache folder does not exist
- lock base to 1.9.1 HOT 1
- Unknown verification code input HOT 1
- unexpected keyword argument 'max_retries' on matrix-puppet-hangouts status message after starting HOT 8
- No ability to start new chats with Hangouts users
- Long-polling request failed: Request connection error: Response payload is not completed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-puppet-hangouts.