Code Monkey home page Code Monkey logo

Comments (4)

justinkaseman avatar justinkaseman commented on July 24, 2024

I took a glance at this while working on the log size, do you have some steps to reproduce?

For example when I run amberdata without an API key the client gets:

{"jobRunID":"1","status":"errored","statusCode":500,"error":{"name":"AdapterError","message":"Invalid value \"undefined\" for header \"x-api-key\""}}

and the node operator sees:

{"message":"Could not reach endpoint: \"Invalid value \\\"undefined\\\" for header \\\"x-api-key\\\"\"","level":"error","instanceId":"68b86ad1-c120-47f2-a004-5245a3dff690","timestamp":"2021-01-07T18:15:26.890Z"}

Giving an invalid Requester.validateResultNumber path gives the following to the client:

{"jobRunID":"1","status":"errored","statusCode":500,"error":{"name":"AdapterError","message":"Result could not be found in path"}}

and to the node operator:

{"message":"Result could not be found in path","level":"error","instanceId":"bad3f72e-ff7b-4853-896f-354e4bd03e2d","timestamp":"2021-01-07T18:26:39.447Z"}

which also seem fine to me.

from external-adapters-js.

justinkaseman avatar justinkaseman commented on July 24, 2024

Following up - reproduced this while acceptance testing the Proof of Reserves composite adapter.

from external-adapters-js.

RodrigoAD avatar RodrigoAD commented on July 24, 2024

Those errors seem that are caught by the Requester. If you introduce any error, ie a throw inside the adapter execute function, the adapter will fail without notifying anything.

from external-adapters-js.

boxhock avatar boxhock commented on July 24, 2024

This should be covered by separate stories in Shortcut now

from external-adapters-js.

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.