cl-ea-nodejs-template's Issues
new Validator (callback, input, customParams) is out of date with @chainlink\external-adapter Validator class
Currently, a validator
object is created in createRequest
in line 22 with
const validator = new Validator(callback, input, customParams)
However, the validator.js class constructor shows as
constructor(input = {}, customParams = {}) {
this.input = input
this.customParams = customParams
this.validated = { data: {} }
this.validateInput()
}
So the external adapter template needs to be updated to
const validator = new Validator(input, customParams)
Otherwise the tests/calls will always fail with the error:
"{"error":{"jobRunID":"1","status":"errored","statusCode":400,"name":"AdapterError","cause":{}},"level":"error","message":"Error validating input.","instanceId":"fc8f1c9b-bcb4-4a2f-ade5-f8d85a116582","timestamp":"2021-06-10T01:48:11.433Z"}"
Issue requesting external adaptor from on-cahin smart contract
Hi Team, I am new to external adaptor. I appoligise if I am asking a dumb question. I created an external adaptor (by the nodejs template) --> created bridge on chianlink node --> created a new job to query the oracle which correspond with my chainlink node. But the error msg shows on job run tab saying "error making http request: Post "http://localhost:8080": dial tcp 127.0.0.1:8080: connect: connection refused". I appricate if somebody can give me a hint which part should I do the debug (there are too many elements are involved)? I also attached the related screenshot below.
My adaptor is listening on localhost:8080 port in the same server as my chainlink node.
I query the external adaptor locally and it successfully returns the result. like the attached screenshot. But it failed with the above error when I call it through the oracle contract. Hope somebody could give me a hint
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.