jublo / codebird-js

A Twitter library in JavaScript.
https://www.jublo.net/projects/codebird/js
GNU General Public License v3.0
384 stars 97 forks source link

"oauth2_token" Call Returning : Object {httpstatus: 0} #135

Closed superjoefly closed 7 years ago

superjoefly commented 7 years ago

The following call to the Twitter API is returning: Object {httpstatus: 0};

<script>
function search() {

var cb = new Codebird;
cb.setConsumerKey("...", "...")
   cb.__call(
      "oauth2_token",
          {},
             function (reply, err) {
                var bearer_token;
                   if (err) {
                     console.log("error response or timeout exceeded" + err.error);
                 }
                   if (reply) {
              console.log(reply);
                       bearer_token = reply.access_token;
                 }
             }
         );
}

search();   // is returning: Object {httpstatus: 0}
</script>

Anyone know what could be causing this?

Thanks :-)

paultibbert commented 7 years ago

I'm seeing wait timeouts on the oauth2_token unless I put the timeout over 2 minutes....

superjoefly commented 7 years ago

I'm also getting this response on a simple search call:

      search() {
        var cb = new Codebird;
        cb.setConsumerKey("consumer_key", "consumer_secret")

             cb.__call(
                   "search_tweets",
                   "q=" + this.term,
                  function (reply) {
              console.log(reply);
             }
         );
      }      // => Object {httpstatus: 0}

I'm wondering if this has something to do with the proxy, my server, or with Twitter. I'm almost finished with my project...hopefully we can get this fixed soon :-)

paultibbert commented 7 years ago

I think it's the proxy server. I left a support message for jublo.net in any case.

superjoefly commented 7 years ago

I left a support message too... I'll post back when I hear from them.

joshuaatkins commented 7 years ago

Hi All,

We are currently investigating this and will post an update.

Thanks,

Josh

joshuaatkins commented 7 years ago

Apologies, we now appear to have brought the API to some stability. Although we will monitor over the next 48 hours.

gaut7 commented 7 years ago

I also get same issue whenever i was searching for "statuses_homeTimeline"

Mindbowser commented 7 years ago

Issue still persists, we are still getting it, any idea?

Hypocrite commented 7 years ago

I am also still experiencing this issue with social-feed (https://github.com/pavelk2/social-feed/issues/268). Tried to upgrade Codebird but it does allow access to https://api.jublo.net/codebird/oauth2/token. Chrome says that is fails to load response data from the address.

mutiullah7 commented 7 years ago

It's not working now, giving error Failed to load resource: net::ERR_CONNECTION_TIMED_OUT api.jublo.net/codebird/oauth2/token

HartLarsson commented 7 years ago

confirmed! is not working

mynetx commented 7 years ago

Does it work in the meantime?

HartLarsson commented 7 years ago

seems it is working again now. Thanks

Hypocrite commented 7 years ago

It seems that the Twitter authentication is not again working. https://api.jublo.net/codebird/oauth2/token is returning Connection timed out error.

marcustisater commented 6 years ago

same issue here, any updates regarding this?

VLZZZ commented 6 years ago

Same issue

nicosuria commented 6 years ago

Same issue.