Comments (8)
@hernandp Working on the fix. Currently it looks like this image:
from machinomy.
Can confirm this error, which I think is new since the update to support ERC-20s.
from machinomy.
Fixed in Machinomy v1.12.5 and e03ab37
from machinomy.
Client.js now works as expected. Thank you very much.
from machinomy.
Looks like the account doesn't have any Ether? If that's your problem, you can go here:
http://faucet.ropsten.be:3001/
from machinomy.
Got it. Instructions were pointing provider to Rinkeby. Feeding address with some ETH cleared the error. But now this is where it's stopping:
sender address 0x19478216c30c1dd68dea03b138bf466919ae369d
info:ChannelEthContract Creating channel. Value: 10000 / Settlement: 172800 +0ms
info:ChannelEthContract Fetching state for channel 0x35e289c8036f48189bd9b59b81a51f5d00000000000000000000000000000000 +31s
TypeError: this.channelsDao.firstById is not a function
at ChannelContract.getContractByChannelId (/Users/coinfabrik/src/machinomy/packages/machinomy/lib/ChannelContract.js:67:48)
at ChannelContract.channelById (/Users/coinfabrik/src/machinomy/packages/machinomy/lib/ChannelContract.js:60:37)
at ChannelManager.channelById (/Users/coinfabrik/src/machinomy/packages/machinomy/lib/ChannelManager.js:105:55)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
from machinomy.
Further errors are shown, in this case from a fresh Linux box.
hernandp@hernandp-virtual-machine:~/machinomy$ DEBUG=* node packages/examples/src/client.js
sender address 0x19478216c30c1dd68dea03b138bf466919ae369d
info:ChannelEthContract Fetching state for channel 0x3660102c7a1d4ea38013e5d6ec3cff5b00000000000000000000000000000000 +0ms
info:ChannelEthContract Fetching state for channel 0x3660102c7a1d4ea38013e5d6ec3cff5b00000000000000000000000000000000 +2s
info:ChannelEthContract Fetching state for channel 0x3660102c7a1d4ea38013e5d6ec3cff5b00000000000000000000000000000000 +2s
info:ChannelEthContract Fetching state for channel 0x3660102c7a1d4ea38013e5d6ec3cff5b00000000000000000000000000000000 +2s
info:Client Attempting to send payment to https://hub.playground.machinomy.com/payments/accept. Sender: 0x19478216c30c1dd68dea03b138bf466919ae369d / Receiver: 0xf4222acef04d86f7304b8364734f22c00108d0cd / Amount: 1000 +0ms
{ FetchError: invalid json response body at https://hub.playground.machinomy.com/payments/accept reason: Unexpected token < in JSON at position 0
at /home/hernandp/machinomy/node_modules/node-fetch/lib/index.js:254:32
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
message: 'invalid json response body at https://hub.playground.machinomy.com/payments/accept reason: Unexpected token < in JSON at position 0',
type: 'invalid-json' }
Let me know if you want any additional detail.
from machinomy.
Fixed.
from machinomy.
Related Issues (20)
- Move Postgres and Mongo dependencies to optional
- Track user balance instead of tying payment tokens to individual requests?
- Build fails
- Check for unused dependencies in package.json
- Switch to Rinkeby? HOT 2
- trouble with build instructions HOT 3
- Replace Buffer with safe-buffer
- Invalid payment HOT 5
- Deploy to Kovan HOT 1
- Use migrators for Storage
- npm install -g machinomy [fails] HOT 1
- Should `acceptPayment` throw an error if the payment is for less than a previous payment? HOT 2
- Throw error if creating payment with negative price
- Broken payment validation HOT 2
- Unable to claim channel HOT 1
- Machinomy on Windows: yarn install error
- Crash when call "channels" method and geth not available HOT 1
- sqlite3 dependency install issue HOT 1
- ABI in @machinomy/contracts incompatible with mainnet contract
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 machinomy.