Closed canweriotnow closed 10 years ago
Hi,
I'm not sure what's going on. I had the same error sometimes as well, but couldn't really reproduce what's going on. I just run the tests and got the same error. Twitter says 403 (forbidden).
[roman@bombaclaat oauth-clj]$ lein test
lein test oauth.facebook-test
lein test oauth.google-test
lein test oauth.instagram-test
lein test oauth.io-test
lein test oauth.twitter-test
lein test :only oauth.twitter-test/test-update-status-query-params
ERROR in (test-update-status-query-params) (client.clj:147)
Uncaught exception, not in assertion.
expected: nil
actual: clojure.lang.ExceptionInfo: clj-http: status 403
at clj_http.client$wrap_exceptions$fn__1775.invoke (client.clj:147)
clj_http.client$wrap_accept$fn__1922.invoke (client.clj:478)
clj_http.client$wrap_accept_encoding$fn__1928.invoke (client.clj:492)
clj_http.client$wrap_content_type$fn__1917.invoke (client.clj:467)
clj_http.client$wrap_form_params$fn__1968.invoke (client.clj:583)
clj_http.client$wrap_nested_params$fn__1986.invoke (client.clj:607)
clj_http.client$wrap_method$fn__1963.invoke (client.clj:566)
....
Running the tests multiple times after the first error suceeds:
[roman@bombaclaat oauth-clj]$ lein test
lein test oauth.facebook-test
lein test oauth.google-test
lein test oauth.instagram-test
lein test oauth.io-test
lein test oauth.twitter-test
lein test oauth.util-test
lein test oauth.v1-test
lein test oauth.v2-test
Ran 57 tests containing 180 assertions.
0 failures, 0 errors.
At the moment I have no idea what this is.
Roman
Okay, thanks. I'm hacking on a Github oauth component (PR forthcoming), wanted to make sure I wasn't seeing something unique to me. I'll update if I find anything. On Dec 4, 2013 6:13 PM, "r0man" notifications@github.com wrote:
Hi,
I'm not sure what's going on. I had the same error sometimes as well, but couldn't really reproduce what's going on. I just run the tests and got the same error. Twitter says 403 (forbidden).
[roman@bombaclaat oauth-clj]$ lein test
lein test oauth.facebook-test
lein test oauth.google-test
lein test oauth.instagram-test
lein test oauth.io-test
lein test oauth.twitter-test
lein test :only oauth.twitter-test/test-update-status-query-params
ERROR in (test-update-status-query-params) (client.clj:147) Uncaught exception, not in assertion. expected: nil actual: clojure.lang.ExceptionInfo: clj-http: status 403 at clj_http.client$wrap_exceptions$fn1775.invoke (client.clj:147) clj_http.client$wrap_accept$fn1922.invoke (client.clj:478) clj_http.client$wrap_accept_encoding$fn1928.invoke (client.clj:492) clj_http.client$wrap_content_type$fn__1917.invoke (client.clj:467) clj_http.client$wrap_form_params$fn1968.invoke (client.clj:583) clj_http.client$wrap_nested_params$fn1986.invoke (client.clj:607) clj_http.client$wrap_method$fn1963.invoke (client.clj:566)
....
Running the tests multiple times after the first error suceeds:
[roman@bombaclaat oauth-clj]$ lein test
lein test oauth.facebook-test
lein test oauth.google-test
lein test oauth.instagram-test
lein test oauth.io-test
lein test oauth.twitter-test
lein test oauth.util-test
lein test oauth.v1-test
lein test oauth.v2-test
Ran 57 tests containing 180 assertions. 0 failures, 0 errors.
At the moment I have no idea what this is.
Roman
— Reply to this email directly or view it on GitHubhttps://github.com/r0man/oauth-clj/issues/11#issuecomment-29856021 .
Got it... since the status body of test-update-status-query-params
and test-update-status-form-params
were both (format "Test %s" (java.util.Date.)
, if both were eval'd at read-time within the same second, a duplicate tweet would be sent, causing the 403 error. Will send PR with fix.
Closing, sent PR with fix in #12
Trace:
Any ideas?