g5 / asyncapi-client Goto Github PK
View Code? Open in Web Editor NEWAsynchronous communication between Rails API servers
License: MIT License
Asynchronous communication between Rails API servers
License: MIT License
This behaviour makes it harder to see what's actually wrong.
To make things simpler, only the client should be the only one to know how to authenticate against the server. The server should not know of special headers/params (besides the recently implemented secret
) to report back to the client.
This means that the feed of jobs in the client should be moved to the server. With this change, it will be the client's job to poll the server for jobs for which it has not gotten a reply from the server.
/app/vendor/bundle/ruby/2.2.0/gems/asyncapi-client-0.4.0/app/services/asyncapi/client/update_job.rb:4: warning: circular argument reference - job
/app/vendor/bundle/ruby/2.2.0/gems/asyncapi-client-0.4.0/app/services/asyncapi/client/update_job.rb:4: warning: circular argument reference - params
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- pry (LoadError)
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in `block in require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:232:in `load_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.15/lib/active_support/dependencies.rb:247:in `require'
from /app/config/application.rb:33:in `block in <class:Application>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/railtie.rb:224:in `call'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/railtie.rb:224:in `block in run_console_blocks'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/railtie.rb:245:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/railtie.rb:245:in `each_registered_block'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/railtie.rb:224:in `run_console_blocks'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/application.rb:421:in `run_console_blocks'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/engine.rb:434:in `load_console'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands/console.rb:51:in `initialize'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands/console.rb:9:in `new'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands/console.rb:9:in `start'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands/commands_tasks.rb:69:in `console'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/commands.rb:17:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/app_rails_loader.rb:43:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/app_rails_loader.rb:43:in `block in exec_app_rails'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/app_rails_loader.rb:32:in `loop'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/app_rails_loader.rb:32:in `exec_app_rails'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/lib/rails/cli.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/bin/rails:9:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.15/bin/rails:9:in `<top (required)>'
from bin/rails:16:in `load'
from bin/rails:16:in `<main>'
If the headers have these set:
'content-type' => 'application/json',
'Accept' => 'application/json',
then the server will have parse errors. One fix would be to convert the server_params
in the JobPostWorker
to_json
.
Or, perhaps we specify that headers like these are not set.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.