Giter Club home page Giter Club logo

aurum's People

Contributors

alex0112 avatar

Stargazers

 avatar  avatar  avatar

aurum's Issues

Workaround for `(ArgumentError) you must merge onto an absolute URI`

To Reproduce:

Request.new(:GET, "/accounts", "", key, secret, Request.server_time) |> Request.send!
** (ArgumentError) you must merge onto an absolute URI
    (elixir) lib/uri.ex:518: URI.merge/2
    (httpotion) lib/httpotion.ex:455: HTTPotion.normalize_location/2
    (httpotion) lib/httpotion.ex:455: HTTPotion.request/3

Notes:

This error is being caused (I suspect) because HTTPotion's normalize_location/2 function calls URI.merge/2 without the prepending http[s]:// to the URI. This causes the authority key in the URI struct to end up nil, meaning that URI.merge/2 is the function being called.

Since this hasn't happened for the other Coinbase calls (see Request.server_time/0), I suspect that when HTTPotion follows a redirect, the resulting string that URI is expected to parse is formed in a way that HTTPotion/URI doesn't expect.

Task:

Verify that this behavior is caused by the redirect, implement a workaround, and consider submitting an issue/PR to HTTPotion.

Resolve warning from underlying HTTP client

 17:55:32.021 [warn]  Description: 'Authenticity is not established by certificate path validation'
      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'

It may be possible to resolve this by using a different HTTP client in the Tesla configuration.

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.