xpring-eng / xpring-sdk-demo Goto Github PK
View Code? Open in Web Editor NEWDemo Code for the Xpring SDK
Home Page: https://xpring.io
Demo Code for the Xpring SDK
Home Page: https://xpring.io
This line in node/src/index.js provides this value, but I'm not clear where it originates. What should I say about using this value, or other values?
const grpcURL = "3.14.64.116:50051";
Note in Swift, we have: let grpcURL = "grpc.xpring.tech:80"
I successfully ran
brew install carthage swiftlint
but failed with
carthage bootstrap
.
(I retried with sudo carthage bootstrap
and got the same error.
REM-ZN4L2L-M:swift lpatterson$ carthage bootstrap
*** Checking out swift-protobuf at "1.6.0"
*** Checking out grpc-swift at "0.9.1"
*** Checking out XpringKit at "1.3.0"
*** Cloning grpc-swift
*** Cloning swift-protobuf
*** Cloning XpringKit
*** xcodebuild output can be found in /var/folders/js/x7840yd52h327dps03_jxhnc0000gp/T/carthage-xcodebuild.tQcko8.log
*** Building scheme "SwiftGRPC-Package" in SwiftGRPC-Carthage.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/lpatterson/xpring-sdk-demo/Xpring-SDK-Demo/swift/Carthage/Checkouts/grpc-swift/SwiftGRPC-Carthage.xcodeproj -scheme SwiftGRPC-Package -configuration Release -derivedDataPath /Users/lpatterson/Library/Caches/org.carthage.CarthageKit/DerivedData/11.3.1_11C504/grpc-swift/0.9.1 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/js/x7840yd52h327dps03_jxhnc0000gp/T/grpc-swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/lpatterson/xpring-sdk-demo/Xpring-SDK-Demo/swift/Carthage/Checkouts/grpc-swift)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/js/x7840yd52h327dps03_jxhnc0000gp/T/carthage-xcodebuild.tQcko8.log
Xpring-SDK-Demo for Node needs version 1.4.0
of dependency xpring-js
to run.
The current Swift README.md refers to Carthage. Do we still want to mention CocoaPods?
Running
node src/index.js
(after an "npm i" install) produces these errors:
Retrieving balance for XVnJMYQFqA8EAijpKh5EdjEY5JqyxykMKKSbrUX8uchF6U8..
(node:11216) UnhandledPromiseRejectionWarning: Error: 12 UNIMPLEMENTED:
at Object.exports.createStatusError (C:\Users\Lois\Documents\GitHub\xsdk\Xpring-SDK-Demo\node\node_modules\grpc\src\common.js:91:15)
at Object.onReceiveStatus (C:\Users\Lois\Documents\GitHub\xsdk\Xpring-SDK-Demo\node\node_modules\grpc\src\client_interceptors.js:1209:28)
at InterceptingListener._callNext (C:\Users\Lois\Documents\GitHub\xsdk\Xpring-SDK-Demo\node\node_modules\grpc\src\client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (C:\Users\Lois\Documents\GitHub\xsdk\Xpring-SDK-Demo\node\node_modules\grpc\src\client_interceptors.js:618:8)
at callback (C:\Users\Lois\Documents\GitHub\xsdk\Xpring-SDK-Demo\node\node_modules\grpc\src\client_interceptors.js:847:24)
(node:11216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11216)
In CONTRIBUTING.md, the submodule update references this repository, but although other repositories do not have an issue, this causes an authentication issue. When I enter the URL directly, I don't have access. So I think this one may be causing an error.
https://github.com/xpring-eng/hermes-ilp/
I followed the instructions in node/README.md in the node-deps branch.
# Install dependencies
npm i
However, I got errors unless I changed this to
sudo npm i
Once I did that, I was able to successfully run the demo at src/index.js. Just checking if this is an idiosyncrasy of my system, or something that should be changed in the doc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.