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 215: Bad auth data on "statuses-user-timeline" call #62

Closed
jcswart opened this issue Jan 21, 2015 · 4 comments
Closed

Error 215: Bad auth data on "statuses-user-timeline" call #62

jcswart opened this issue Jan 21, 2015 · 4 comments

Comments

@jcswart
Copy link

jcswart commented Jan 21, 2015

I'm attempt to call (statuses-user-timeline ...)

(statuses-user-timeline :oath-creds <result of make-oath-creds> :params {:screen-name <username>}))

Which yields

Exception Twitter responded to request with error 215: Bad Authentication data  sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
java.lang.Exception: Twitter responded to request with error 215: Bad Authentication data
                                 (Unknown Source) sun.reflect.NativeConstructorAccessorImpl.newInstance0
            NativeConstructorAccessorImpl.java:62 sun.reflect.NativeConstructorAccessorImpl.newInstance
        DelegatingConstructorAccessorImpl.java:45 sun.reflect.DelegatingConstructorAccessorImpl.newInstance
                             Constructor.java:408 java.lang.reflect.Constructor.newInstance
                               Reflector.java:180 clojure.lang.Reflector.invokeConstructor
                                  handlers.clj:52 twitter.callbacks.handlers/response-throw-error
                                 handlers.clj:130 twitter.callbacks.handlers/handle-response
                                  RestFn.java:464 clojure.lang.RestFn.invoke
                                   request.clj:29 twitter.request/get-response-transform[fn]
                                   request.clj:45 twitter.request/execute-request-callbacks
                                     core.clj:105 twitter.core/http-request
                                   restful.clj:48 twitter.api.restful/statuses-user-timeline

I was wondering if you were able to succeed with such a call?

@juxtin
Copy link
Contributor

juxtin commented Jan 21, 2015

@jcswart I've been able to use that API endpoint without any trouble, so my strong suspicion is that there's something wrong with the credentials you're passing to make-oauth-creds.

@adamwynne
Copy link
Owner

Could it be a typo in the omission of the 'u' in :oauth-creds?

On Wednesday, January 21, 2015, Jarrod Swart notifications@github.com
wrote:

I'm attempt to call (statuses-user-timeline ...)

(statuses-user-timeline :oath-creds :params {:screen-name }))

Which yields

Exception Twitter responded to request with error 215: Bad Authentication data sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
java.lang.Exception: Twitter responded to request with error 215: Bad Authentication data
(Unknown Source) sun.reflect.NativeConstructorAccessorImpl.newInstance0
NativeConstructorAccessorImpl.java:62 sun.reflect.NativeConstructorAccessorImpl.newInstance
DelegatingConstructorAccessorImpl.java:45 sun.reflect.DelegatingConstructorAccessorImpl.newInstance
Constructor.java:408 java.lang.reflect.Constructor.newInstance
Reflector.java:180 clojure.lang.Reflector.invokeConstructor
handlers.clj:52 twitter.callbacks.handlers/response-throw-error
handlers.clj:130 twitter.callbacks.handlers/handle-response
RestFn.java:464 clojure.lang.RestFn.invoke
request.clj:29 twitter.request/get-response-transform[fn]
request.clj:45 twitter.request/execute-request-callbacks
core.clj:105 twitter.core/http-request
restful.clj:48 twitter.api.restful/statuses-user-timeline

I was wondering if you were able to succeed with such a call?


Reply to this email directly or view it on GitHub
#62.

@jcswart
Copy link
Author

jcswart commented Jan 21, 2015

@adamwynne Wow, that was it! I'm honestly a little embarrassed, but thrilled that it was so simple. Really impressive work on the library, and thank you for being a second pair of eyes. If you happen to know of good wrapper libraries for the other social networks please let me know.

@holguinj Thanks for popping in on a lark and helping out!

@jcswart jcswart closed this as completed Jan 21, 2015
@adamwynne
Copy link
Owner

you're welcome :)

On Wed, Jan 21, 2015 at 2:18 PM, Jarrod Swart notifications@github.com
wrote:

@adamwynne https://github.com/adamwynne Wow, that was it! I'm honestly
a little embarrassed, but thrilled that it was so simple. Really impressive
work on the library, and thank you for being a second pair of eyes. If you
happen to know of good wrapper libraries for the other social networks
please let me know.

@holguinj https://github.com/holguinj Thanks for popping in on a lark
and helping out!


Reply to this email directly or view it on GitHub
#62 (comment)
.

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