Git Product home page Git Product logo

Comments (7)

rcdilorenzo avatar rcdilorenzo commented on June 9, 2024 1

I've published the new version 0.4.2 that includes this fix.

from filtrex.

rcdilorenzo avatar rcdilorenzo commented on June 9, 2024

Do you have a stack trace that you can post here that includes the error no with clause matching...?

from filtrex.

goravbhootra avatar goravbhootra commented on June 9, 2024

@rcdilorenzo Thanks for the prompt response.

If I remove the handling of

{:error, error} -> render_error(conn, error, privileged_candidate_path(conn, :index, access_id: access_id))

following error shows up:

[debug] Processing with MyApp.Privileged.CandidateController.index/2
  Parameters: %{"access_id" => "1ae51ba3-ee00-70b9-bc4a-57e99aaaf05b", "page" => "3", "status_equals" => "2"}
  Pipelines: [:browser, :privileged]
[debug] QUERY OK source="batches" db=6.8ms
...query...
[info] Sent 500 in 1518ms
[error] #PID<0.2676.0> running MyApp.Endpoint (cowboy_protocol) terminated
Server: localhost:5000 (http)
Request: GET /privileged/candidates?access_id=1ae51ba3-ee00-70b9-bc4a-57e99aaaf05b&page=3&status_equals=2
** (exit) an exception was raised:
    ** (WithClauseError) no with clause matching: {:error, "Invalid number value for '2'"}
        (pcms) lib/pcms_web/controllers/privileged/candidate_controller.ex:17: MyApp.Privileged.CandidateController.index/3
        (pcms) lib/pcms_web/controllers/privileged/candidate_controller.ex:1: MyApp.Privileged.CandidateController.action/2
        (pcms) lib/pcms_web/controllers/privileged/candidate_controller.ex:1: MyApp.Privileged.CandidateController.phoenix_controller_pipeline/2
        (pcms) lib/pcms_web/endpoint.ex:1: MyApp.Endpoint.instrument/4
        (phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
        (pcms) lib/plug/error_handler.ex:64: MyApp.Router.call/2
        (pcms) lib/pcms_web/endpoint.ex:1: MyApp.Endpoint.plug_builder_call/2
        (pcms) lib/plug/debugger.ex:102: MyApp.Endpoint."call (overridable 3)"/2
        (pcms) lib/pcms_web/endpoint.ex:1: MyApp.Endpoint.call/2
        (plug) lib/plug/adapters/cowboy/handler.ex:16: Plug.Adapters.Cowboy.Handler.upgrade/4
        (cowboy) /Users/gorav/Work/Solutionize/projects/pcms/deps/cowboy/src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4

If I retain handling of the error in the code, error message flashes on the page
Invalid number value for '2'

Let me know if you need any further details.

from filtrex.

goravbhootra avatar goravbhootra commented on June 9, 2024

looks like this is re-surfacing #49

from filtrex.

goravbhootra avatar goravbhootra commented on June 9, 2024

@rcdilorenzo just realized that above fix is not part of the latest release. using master branch seems to have fixed the issue. exploring further.

would it be possible to release a new version with the fix so that somebody else trying the library doesnt land up in same situation. I wasted couple of hours trying to figure out if there was an issue with my setup and then moving on to explore other libraries.

from filtrex.

rcdilorenzo avatar rcdilorenzo commented on June 9, 2024

Absolutely. I apologize for the inconvenience. I'll try to do a release on Monday if I can. I didn't have that PR in the GitHub Project tab so I thought everything was up-to-date.

from filtrex.

goravbhootra avatar goravbhootra commented on June 9, 2024

@rcdilorenzo thanks for the wonderful library and prompt responses. may be couple of url examples would help new users. I will try to raise a PR once I get better understanding.

from filtrex.

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.