adamwynne/twitter-api

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

Closed this issue · 4 comments

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?

@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.

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.

@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!

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)
.