Giter VIP home page Giter VIP logo

ffnerd-api-elixir's Introduction

ffnerd-api-elixir's People

Contributors

geolessel avatar jessejanderson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ffnerd-api-elixir's Issues

Calling FFNerd.Player.find/2 Crashes in httpoison

Calling FFNerd.Player.find(name, client) results in a crash in httpoison.
see https://github.com/mazz/fb_manager_no_otp/blob/master/lib/fb_manager_no_otp.ex#L17

iex(1)> pid = FbManagerNoOtp.start_link
#PID<0.187.0>
iex(2)> send(pid, {:add, "Russell Wilson"})
{:add, "Russell Wilson"}
%FFNerd.Client{auth: "hrqevq4h55mt",
 endpoint: "http://www.fantasyfootballnerd.com"}
"Russell Wilson"
** (EXIT from #PID<0.185.0>) evaluator process exited with reason: an exception was raised:
    ** (Poison.SyntaxError) Unexpected end of input
        lib/poison/parser.ex:54: Poison.Parser.parse!/2
        lib/poison.ex:83: Poison.decode!/2
        (ffnerd) lib/ffnerd.ex:27: FFNerd.process_response_body/1
        (httpoison) lib/httpoison/base.ex:413: HTTPoison.Base.response/6
        (ffnerd) lib/ffnerd.ex:2: FFNerd.request!/5
        (ffnerd) lib/ffnerd.ex:10: FFNerd.get/2
        (ffnerd) lib/ffnerd/player.ex:21: FFNerd.Player.list/1
        (ffnerd) lib/ffnerd/player.ex:53: FFNerd.Player.find/2

0.2.0 hex.pm package uses http but API requires https

If you do not use https, the process will crash with something like:

** (EXIT from #PID<0.185.0>) evaluator process exited with reason: an exception was raised:
    ** (Poison.SyntaxError) Unexpected end of input
        lib/poison/parser.ex:54: Poison.Parser.parse!/2
        lib/poison.ex:83: Poison.decode!/2
        (ffnerd) lib/ffnerd.ex:27: FFNerd.process_response_body/1
        (httpoison) lib/httpoison/base.ex:413: HTTPoison.Base.response/6
        (ffnerd) lib/ffnerd.ex:2: FFNerd.request!/5
        (ffnerd) lib/ffnerd.ex:10: FFNerd.get/2
        (ffnerd) lib/ffnerd/player.ex:21: FFNerd.Player.list/1
        (ffnerd) lib/ffnerd/player.ex:53: FFNerd.Player.find/2

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.