Skip to content

"unhandled and unrecoverable error" on /admin/model/voter  #38

Description

@ijt

I'm working through the Evening with Chicago Boss tutorial
https://github.com/ChicagoBoss/ChicagoBoss/wiki/An-Evening-With-Chicago-Boss

When I visit http://localhost:8001/admin/model/voter, as the tutorial suggests, this error shows up in the browser:

An unhandled and unrecoverable error occurred. Please check error logs.

The error logs have this to say:

14:08:13.057 [notice] ApplicationForPath cb_admin
14:08:13.058 [info] Route: "/model/voter"Url
[]
14:08:13.059 [error] Unhandled Error: error:function_clause Stacktrace: [{string,tokens1,[49,"/",[]],[{file,"string.erl"},{line,226}]},{cb_admin_lib,-require_ip_address/1-fun-0-,3,[{file,"/Users/issactrotts/erlang/evening/deps/cb_admin/src/lib/cb_admin_lib.erl"},{line,24}]},{lists,foldr,3,[{file,"lists.erl"},{line,1274}]},{cb_admin_lib,require_ip_address,1,[{file,"/Users/issactrotts/erlang/evening/deps/cb_admin/src/lib/cb_admin_lib.erl"},{line,22}]},{boss_controller_adapter_pmod,before_filter,2,[{file,"src/boss/controller_adapters/boss_controller_adapter_pmod.erl"},{line,58}]},{boss_web_controller,apply_before_filters,3,[{file,"src/boss/boss_web_controller.erl"},{line,365}]},{boss_web_controller,apply_action,4,[{file,"src/boss/boss_web_controller.erl"},{line,300}]},{boss_web_controller,execute_action_inner,9,[{file,"src/boss/boss_web_controller.erl"},{line,287}]}]

The error message is cryptic. I tried pasting it into the erl shell, but it can't digest the dash (-) in -require_ip_address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions