Coder Social home page Coder Social logo

Standalone Web UI doesn't start about exq HOT 15 CLOSED

akira avatar akira commented on May 14, 2024
Standalone Web UI doesn't start

from exq.

Comments (15)

romul avatar romul commented on May 14, 2024

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.

romul avatar romul commented on May 14, 2024

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.

j-mcnally avatar j-mcnally commented on May 14, 2024

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.

romul avatar romul commented on May 14, 2024

@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.

j-mcnally avatar j-mcnally commented on May 14, 2024

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.

mspanc avatar mspanc commented on May 14, 2024

I have the same issue

from exq.

j-mcnally avatar j-mcnally commented on May 14, 2024

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.

akira avatar akira commented on May 14, 2024

@j-mcnally great, let me know if you need any help (btw, you should have commit access to master).

from exq.

j-mcnally avatar j-mcnally commented on May 14, 2024

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.

j-mcnally avatar j-mcnally commented on May 14, 2024

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.

j-mcnally avatar j-mcnally commented on May 14, 2024

@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.

j-mcnally avatar j-mcnally commented on May 14, 2024

@mspanc do you mind testing with master.

Basically just swap out the hex package for {:exq, github: 'akira/exq'} as @romul suggests.

from exq.

akira avatar akira commented on May 14, 2024

@j-mcnally I'll take a look at the hex package issue

from exq.

akira avatar akira commented on May 14, 2024

@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.

j-mcnally avatar j-mcnally commented on May 14, 2024

Teamwork

from exq.

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.