Comments (15)
Ok, that's because of a hex package doesn't contain web directory.
Web UI works if github link is used as dependency:
defp deps do
[
{:exq, github: 'akira/exq'}
]
end
from exq.
Although some strange errors still occur in the console log:
21:20:52.333 [error] Ranch listener Exq.RouterPlug.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.429.0>
exit with reason: {{%Plug.Conn.NotSentError{message: "no response was set nor sent from the connection"},
[{Plug.Adapters.Cowboy.Handler, :maybe_send, 2, [file: 'lib/plug/adapters/cowboy/handler.ex', line: 42]},
{Plug.Adapters.Cowboy.Handler, :upgrade, 4, [file: 'lib/plug/adapters/cowboy/handler.ex', line: 16]},
{:cowboy_protocol, :execute, 4, [file: 'src/cowboy_protocol.erl', line: 435]}]},
{Exq.RouterPlug, :call, [%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...},
assigns: %{}, before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET",
owner: #PID<0.429.0>, params: %Plug.Conn.Unfetched{aspect: :params},
path_info: ["api", "realtimes"], peer: {{127, 0, 0, 1}, 55566}, port: 4040, private: %{},
from exq.
I'll try to take a look today.
On Tue, Jun 16, 2015 at 1:27 PM, Roman Smirnov [email protected]
wrote:
Although some strange errors related to /api/realtimes still occur in the
console log:21:20:52.333 [error] Ranch listener Exq.RouterPlug.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.429.0> exit with reason: {{%Plug.Conn.NotSentError{message: "no response was set nor sent from the connection"}, [{Plug.Adapters.Cowboy.Handler, :maybe_send, 2, [file: 'lib/plug/adapters/cowboy/handler.ex', line: 42]}, {Plug.Adapters.Cowboy.Handler, :upgrade, 4, [file: 'lib/plug/adapters/cowboy/handler.ex', line: 16]}, {:cowboy_protocol, :execute, 4, [file: 'src/cowboy_protocol.erl', line: 435]}]}, {Exq.RouterPlug, :call, [%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{}, before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET", owner: #PID<0.429.0>, params: %Plug.Conn.Unfetched{aspect: :params}, path_info: ["api", "realtimes"], peer: {{127, 0, 0, 1}, 55566}, port: 4040, private: %{},
—
Reply to this email directly or view it on GitHub
https://github.com/akira/exq/issues/64#issuecomment-112521548.
http://www.kohactive.com
Justin McNally
Technology Director / Principal
p: 312.273.3074 <+13122733074> | e: [email protected] | skype:
justinmcnally211 http://is.gd/UuXAGG
https://github.com/j-mcnally https://twitter.com/j_mcnally
https://www.linkedin.com/profile/view?id=143776726
from exq.
@j-mcnally Thank you for a quick response.
I've already figured out what's going on, please, take a look at my pull request.
from exq.
Thanks so much! i will check it out now!
On Tue, Jun 16, 2015 at 4:00 PM, Roman Smirnov [email protected]
wrote:
@j-mcnally https://github.com/j-mcnally Thank you for a quick response.
I've already figured out a root of the issue, please, take a look at my
pull request.—
Reply to this email directly or view it on GitHub
https://github.com/akira/exq/issues/64#issuecomment-112568708.
http://www.kohactive.com
Justin McNally
Technology Director / Principal
p: 312.273.3074 <+13122733074> | e: [email protected] | skype:
justinmcnally211 http://is.gd/UuXAGG
https://github.com/j-mcnally https://twitter.com/j_mcnally
https://www.linkedin.com/profile/view?id=143776726
from exq.
I have the same issue
from exq.
Thanks so much for the report. I will get this fixed in master tonight. I think the problem is I haven't kept up with testing new elixirs and otps
from exq.
@j-mcnally great, let me know if you need any help (btw, you should have commit access to master).
from exq.
ok so just to keep everyone updated, i pulled master and was able to run
mix exq.ui --webport 4040
and everything works.
Im going to create a dummy project and try to reproduce the issue.
@mspanc or @romul would it be possible to get a simple project where this fails.
As for the hex package missing the web directory i must admit i don't know much about hex packages.
@akira do you have any idea why that would be the case?
from exq.
ok i was able to reproduce with
defmodule ExqTest.Mixfile do
use Mix.Project
def project do
[ app: :exqtest,
version: "0.0.1",
elixir: "~> 1.0.0",
elixirc_paths: ["lib"],
package: [],
description: """
Exq test.
""",
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { ExqTest, [] },
applications: [:logger]
]
end
# Returns the list of dependencies in the format:
# { :foobar, "0.1", git: "https://github.com/elixir-lang/foobar.git" }
defp deps do
[
{:exq, path: '../exq'}
]
end
end
from exq.
@romul's fix works perfect. Must be a new plug thing. Still perplexed why it works in isolation but not when embeded in another project. O well.
Now we just need to fix the hex package and we should be good to go.
from exq.
@mspanc do you mind testing with master.
Basically just swap out the hex package for {:exq, github: 'akira/exq'}
as @romul suggests.
from exq.
@j-mcnally I'll take a look at the hex package issue
from exq.
@j-mcnally I added to it to the files in mix.exs and bump / published it again. It should work now, let me know if not or if there are any other issues.
from exq.
from exq.
Related Issues (20)
- Redis Sentinel Configuration Error HOT 10
- Proposal: add middleware hook just before apply(mod, fun, args) in Task started by worker HOT 2
- Can't find running job HOT 1
- How to configure a worker at runtime? HOT 4
- Order of middleware execution HOT 1
- Busy Tab is not working HOT 2
- Busy Tab is not working
- no function clause matching in Exq.Manager.Server.handle_call/3 HOT 2
- `Exq.enqueue_in` doesn't work in `mode: [:enqueuer, :api]` HOT 3
- Exq vs Oban? HOT 1
- Redis 6.0 ACL is supported ? HOT 1
- Dynamic subscription enqueued workers never run HOT 2
- [Question] How do I get job score? HOT 3
- Logging middleware doesn't give support for enqueueing logs HOT 5
- expected :timeout to be an integer of :infinity, got: nil HOT 5
- Unique jobs feature is not working HOT 2
- expected :timeout to be an integer of :infinity HOT 2
- Feature Request: enqueue a batch of jobs atomically HOT 3
- Missing assign `:worker_module` HOT 2
- How many queues can I create? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exq.