Skip to content

编译报错,网络错误 #15

@github10000

Description

@github10000

用这种方式编译:js4eos compile2 -g xxx.abi xxx.cpp --contract contractclass

报下面的错:
fail due to network or error, please check network and try again
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/usr/local/lib/node_modules/js4eos/lib/compile.js:28:21)
at self.callback (/usr/local/lib/node_modules/js4eos/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (/usr/local/lib/node_modules/js4eos/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:200:13)
at Socket.socketErrorListener (_http_client.js:402:9)
at Socket.emit (events.js:200:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions