{"action":"opened","issue":{"number":60,"created_at":"2011-10-19T15:42:45Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\nI trying to use couchbeam within a ejabberd module, I use this a sample code :\r\n\r\n```\r\n-module(mod_test).\r\n\r\n-define(EJABBERD_DEBUG, true).\r\n-behaviour(gen_mod).\r\n\r\n-include(\"ejabberd.hrl\").\r\n-include(\"couchbeam.hrl\").\r\n\r\n-export([start/2, stop/1]).\r\n\r\n\r\nstart(Host, _Opts) ->\r\n  ?INFO_MSG(\"mod_test started ~p\",[Host]),\r\n\r\n  application:start(sasl),\r\n  application:start(ibrowse),\r\n  application:start(couchbeam),\r\n  CouchDB = couchbeam:server_connection(\"localhost\",5984 ,\"\",[]),\r\n  {ok, _Version} = couchbeam:server_info(CouchDB),\r\n  ok.\r\n\r\nstop(Host) ->\r\n  ?INFO_MSG(\"mod_test stopping: ~p\",[Host]),\r\n  ok.\r\n```\r\n\r\nBut, I still getting this error :\r\n```\r\n=ERROR REPORT==== 2011-10-19 13:21:29 ===\r\nC(<0.34.0>:gen_mod:75) : Problem starting the module mod_test for host \"localhost\"\r\n options: []\r\n error: undef\r\n```\r\n\r\nAm I missing something ?\r\nThank you in advance\r\n/Y","comments":0,"title":"using couchbeam in ejabberd module","updated_at":"2011-10-19T15:42:45Z","url":"https://api.github.com/repos/benoitc/couchbeam/issues/60","id":1995202,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/2533511e06418b834274049ff7590caa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2533511e06418b834274049ff7590caa","url":"https://api.github.com/users/interactiveobject","id":198514,"login":"interactiveobject"},"html_url":"https://github.com/benoitc/couchbeam/issues/60","labels":[],"state":"open"},"legacy":{"number":60,"action":"opened","issue":1995202}}