Giter Site home page Giter Site logo

Comments (8)

ukstv avatar ukstv commented on June 20, 2024 4

@hernandp Working on the fix. Currently it looks like this image:
1375179273_484568944

from machinomy.

karzak avatar karzak commented on June 20, 2024 2

Can confirm this error, which I think is new since the update to support ERC-20s.

from machinomy.

ARyaskov avatar ARyaskov commented on June 20, 2024 1

Fixed in Machinomy v1.12.5 and e03ab37

from machinomy.

hernandp avatar hernandp commented on June 20, 2024 1

Client.js now works as expected. Thank you very much.

from machinomy.

karzak avatar karzak commented on June 20, 2024

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.

hernandp avatar hernandp commented on June 20, 2024

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.

hernandp avatar hernandp commented on June 20, 2024

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.

ARyaskov avatar ARyaskov commented on June 20, 2024

Fixed.

from machinomy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.