Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the example command in README. #2

Open
gusaiani opened this issue Oct 3, 2018 · 4 comments
Open

Error running the example command in README. #2

gusaiani opened this issue Oct 3, 2018 · 4 comments

Comments

@gusaiani
Copy link

gusaiani commented Oct 3, 2018

Hello @tmjoen,

I tried setting up my project following the instructions in the README.

I'm getting the following error:

GenServer Eightyfour.TokenCache terminating
** (UndefinedFunctionError) function :certifi.cacerts/0 is undefined (module :certifi is not available)
    (certifi) :certifi.cacerts()

Is this repo still maintained? Would you be interested in helping out a fellow Elixirist with this? :)

Many thanks!
Gustavo

@gusaiani
Copy link
Author

gusaiani commented Oct 3, 2018

Ok, the certify issue is related to Hackney.

I kind of fixed it, it's unstable but now I'm querying the browsers and it's returning

** (Protocol.UndefinedError) protocol Enumerable not implemented for nil. This protocol is implemented for: Date.Range, File.Stream, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, List, Map, MapSet, Range, Stream, Timex.Interval
    (elixir) /private/tmp/elixir-20180825-41637-j0b7x7/elixir-1.7.3/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir) /private/tmp/elixir-20180825-41637-j0b7x7/elixir-1.7.3/lib/elixir/lib/enum.ex:141: Enumerable.reduce/3
    (elixir) lib/enum.ex:2979: Enum.reduce/3
    (eightyfour) lib/eightyfour/queries.ex:42: Eightyfour.Query.browsers/1

this is a pretty large Analytics history.

Thoughts?

@tmjoen
Copy link
Contributor

tmjoen commented Oct 5, 2018

Strange, I pulled it up now and everything seems to work for me.

Eightyfour.Query.browsers(:yesterday)
[
  [os: "Windows", browser: "Chrome", version: "69.0.3497.100", hits: "201"],
  [os: "iOS", browser: "Safari", version: "11.0", hits: "177"]
...
]

I've pushed some updates to the repo with updated deps — you could try it with

{:eightyfour, github: "twined/eightyfour"} in your mix.exs

What version of erlang are you running?

@gusaiani
Copy link
Author

gusaiani commented Oct 9, 2018

Hey @tmjoen,

thanks for your response. I ended up having twins since I wrote haahhaahah

I'll get back to you as soon as I can here.

All the best!

@tmjoen
Copy link
Contributor

tmjoen commented Oct 9, 2018

Hah, no worries. Congratulations, you're gonna need all the concurrency you can get!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@gusaiani @tmjoen and others