Giter Site home page Giter Site logo

Comments (18)

matthewrj avatar matthewrj commented on August 28, 2024 1

How do you clean up the queue and escape from the pump-blocked state. Right now all requests to api.github.com result in [%e %vi %pump-blocked /com/github 13] and I'm not sure how to proceed.

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

[%e %vi %pump-blocked /com/github 6]

from urbit.org.

galenwp avatar galenwp commented on August 28, 2024

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

It is as ault011 says: follow the instructions under the OAuth2 heading and this is what will happen. It doesn't matter whether you've run |init-auth-basic first or not. The loading of the keys from github seems to work fine. The dojo examples using |init-auth-basic seem to work fine, including those set out in the API Connectors page. The error from my last comment, [%e %vi %pump-blocked /com/github 6] starts coming up when you issue the request again after this first %ford-mystery. Attempting to double back and run |init-auth-basic gets you the %pump-blocked thing again. I'm planning on seeing if I can clean these connectors up but I've just dug into it from an elevation of complete ignorance.

> |init-oauth2
>=
[%auth "https://api.github.com/user"]
> +https://api.github.com/user
%dy-no-prompt
 [ %ford-mystery
~[
 / g
  ~bortug-nodpun-batner-satlep--possyr-dattus-sicnup-balluc
  use
  dojo
  ~bortug-nodpun-batner-satlep--possyr-dattus-sicnup-balluc
  inn
  hand
 / g
  ~bortug-nodpun-batner-satlep--possyr-dattus-sicnup-balluc
  use
  hood
  ~bortug-nodpun-batner-satlep--possyr-dattus-sicnup-balluc
  out
  dojo
  drum
  phat
  ~bortug-nodpun-batner-satlep--possyr-dattus-sicnup-balluc
  dojo
/d
//term/1
  ]  
]
!  cancel /hand

from urbit.org.

galenwp avatar galenwp commented on August 28, 2024

Ah, sorry. Got this as an email and was confused. Yeah, this needs attention.

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

OK. Would it be imprudent to work on the API connectors for this reason? You could also read that as, what can I do around here?

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

galenwp avatar galenwp commented on August 28, 2024

We'd certainly like it to be under maintenance.

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

ohAitch avatar ohAitch commented on August 28, 2024

What's happening here is that one of your requests is not returning for some reason. The core problem is that some HTTP requests hang open indefinitely, causing the queue of outbound API requests for a domain to become blocked.

That's what the pump-blocked printf is telling you. You can change ?. liv to ?. |(liv =(4 ~(wyt in req))) in %eyre, and make another request to the same API, to retry the queue.

In the long term we need to fix two things here: how each API driver handles failures, and how Urbit actually handles dead HTTP requests. If you're interested in diving in that deeply, we're happy to help. But yeah: it’d be good to do that work on master as opposed to maintenance. They haven’t diverged all that much where API connectors are concerned, but it’ll make the cc-release transition easier.

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

Right now I am merely editing the existing security drivers and connectors so they will compile after the structural changes in zuse and hoon. Need guidance on writing things like role:lines:clay as opposed to

 =,  clay
 =,  lines 
 [...]
 role

or

=,  clay
[...]
role:lines

(And while on the subject, the relationship between . and : has always been a little mysterious to me. I can tell you what they mean ['wing lookup' and 'irregular :rap'] but their interchangeability in many circumstances gives me a creepy feeling like I'm not getting something.)

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

But... I would suggest working out of a fakezod and killing it. There's a lot of dodgy code in this area.

As in, urbit -c a new fakezod every time the, uh, pump gets blocked?

from urbit.org.

cgyarvin avatar cgyarvin commented on August 28, 2024

from urbit.org.

hoclun-rigsep avatar hoclun-rigsep commented on August 28, 2024

10-4, just making sure that's what you meant.

from urbit.org.

galenwp avatar galenwp commented on August 28, 2024

from urbit.org.

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.