Coder Social home page Coder Social logo

Unable to authenticate about extwitter HOT 5 CLOSED

parroty avatar parroty commented on May 30, 2024
Unable to authenticate

from extwitter.

Comments (5)

parroty avatar parroty commented on May 30, 2024

I've just retried in my local environment and my keys, but the same command seems working (also, if I intentionally put dummy in one of the parameter (ex. access_token_secrect), the error Could not authenticate you. becomes displayed.

$ ./run_iex.sh
Erlang/OTP 19 [erts-8.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (1.4.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Enum.count(ExTwitter.search("test"))
14

Still I am not able to use the API. I also double and triple checked the tokes and also regenerated them

I'm still wondering it's related to twitter api permission (as per error message), but it's difficult to isolate as keys are secret. Is it possible to verify the key? (possibly try directly with twitter or other language libraries, etc.).

from extwitter.

faebser avatar faebser commented on May 30, 2024

Thanks for your response. I found some strange irregularities. I'm gonna setup asap a github repo to try to isolate a test case for you.

from extwitter.

faebser avatar faebser commented on May 30, 2024

I finally found the time to setup for you at https://github.com/faebser/extwitter_test_case.
You can recreate the error by simply running iex -S mix and then searching for something like ExTwitter.search "foo".
If you look into the config.exs file you will find two blocks of configuration with comments telling you which one works and vice versa.

Anyway I already have the a nagging feeling that I just overlooked something and you will tell me soon ;)
I will leave the keys active for a few days.

from extwitter.

parroty avatar parroty commented on May 30, 2024

Thanks for the repository creation and sorry being late to respond. and I could confirm the behavior using the your repository.
It seems the difference between not working and working seems the typo in access_token_secrect (is this the difference?)
https://github.com/faebser/extwitter_test_case/blob/master/config/config.exs#L38

from extwitter.

faebser avatar faebser commented on May 30, 2024

hm, how embarrassing. I was sure that they are the same. Thanks a lot.

from extwitter.

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.