Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Template issues #925

Closed
appsignal bot opened this issue Jan 14, 2021 · 0 comments · Fixed by #930
Closed

Session Template issues #925

appsignal bot opened this issue Jan 14, 2021 · 0 comments · Fixed by #930
Assignees

Comments

@appsignal
Copy link

appsignal bot commented Jan 14, 2021

Message

  ** (ErlangError) Erlang error: "list_filter threw an exception, args: %{filter: %{is_hsm: true}, opts: %{limit: 50, offset: 0, order: :asc, order_with: \"desc\"}, organization_id: 2}, object: Glific.Templates.SessionTemplate"

Backtrace (last 10 lines)

lib/ecto/adapters/sql.ex:751 Ecto.Adapters.SQL.raise_sql_call_error/1
lib/ecto/adapters/sql.ex:684 Ecto.Adapters.SQL.execute/5
lib/ecto/repo/queryable.ex:229 Ecto.Repo.Queryable.execute/4
lib/ecto/repo/queryable.ex:17 Ecto.Repo.Queryable.all/3
lib/glific/repo.ex:77 Glific.Repo.list_filter/5
lib/glific_web/resolvers/templates.ex:26 GlificWeb.Resolvers.Templates.session_templates/3
lib/absinthe/resolution.ex:209 Absinthe.Resolution.call/2
lib/absinthe/phase/document/execution/resolution.ex:230 Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1

View on AppSignal: https://appsignal.com/project-tech4dev/sites/5f480c425ac13f7330101f30/exceptions/incidents/36?timestamp=2021-01-14T06:32:35Z

Steps to replicate

  1. Go to Tag
  2. Click on Label to sort
  3. Check the "glific_config" object stored in local storage. Column name is mistakenly stored as 'desc'

This results in the above error when a user visits the same page again in the current session. The page also breaks in this scenario.

@dlobo dlobo transferred this issue from glific/glific Jan 14, 2021
@kurund kurund self-assigned this Jan 14, 2021
@kurund kurund mentioned this issue Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant