Giter Site home page Giter Site logo

Not able to run hbc-example about hbc HOT 6 CLOSED

twitter avatar twitter commented on August 22, 2024
Not able to run hbc-example

from hbc.

Comments (6)

kevinoliver avatar kevinoliver commented on August 22, 2024 1

Looks like you are not using proper credentials, (note the 401 and unauthorized).

from hbc.

kevinoliver avatar kevinoliver commented on August 22, 2024

So for maven you generally don't want to be using other peoples snapshots, and instead you want to compile/install them locally.

BUT, our docs are wrong. It should be mvn install && mvn exec:java -pl hbc-example

I'll update the docs.

from hbc.

P7h avatar P7h commented on August 22, 2024

Perfect. Everything works fine.
Thanks for such a swift response.

from hbc.

tobecalled avatar tobecalled commented on August 22, 2024

Hey guys, I have a similar issue still. I ran the mvn install/exec:java.
Ideas?

Here are my logs:
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - sampl
eExampleClient Establishing a connection
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - sampl
eExampleClient Error connecting w/ status code - 401, reason - Unauthorized
Did not receive a message in 5 seconds
Did not receive a message in 5 seconds
Did not receive a message in 5 seconds
Did not receive a message in 5 seconds
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - sampl
eExampleClient Done processing, preparing to close connection
[hosebird-client-io-thread-0] INFO com.twitter.hbc.httpclient.ClientBase - sampl
eExampleClient Establishing a connection
[hosebird-client-io-thread-0] WARN com.twitter.hbc.httpclient.ClientBase - sampl
eExampleClient Error connecting w/ status code - 401, reason - Unauthorized
Did not receive a message in 5 seconds
Did not receive a message in 5 seconds
Terminate batch job (Y/N)? y

from hbc.

tobecalled avatar tobecalled commented on August 22, 2024

Do you mean my "auth" object isn't be instantiated correctly?
I tried OAuth1 with these params: Dconsumer.key=XYZ -Dconsumer.secret=SECRET -Daccess.token=ABC -Daccess.token.secret=ABCSECRET

and BasicAuth with a username/pass of an existing twitter account.

from hbc.

kevinoliver avatar kevinoliver commented on August 22, 2024

more likely you aren't using the right parameters for oauth or there is a transient oauth error on our side.

that said, this is pretty unrelated to this issue. please feel free to open a separate issue though.

from hbc.

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.