Search code examples
erlangerlang-otpgen-server

bad_application error starting erlang gen_server application


I have written a simple erlang app using gen_server.

When starting it with application:start(myapp), I get the following tuple...

{error,{bad_application,{appliction,myapp ... (rest of my application config).

There are no other error or warning messages. I have also tried to google examples of how to configure gen_server and also the error itself. I am surprised at how little information there is out there.

I could start trying to debug OTP?? Any pointers would be appreciated.


Solution

  • I assume there is an error in your config file. One thing you could try to do is

    file:consult("<your-app-config-file>").
    

    If it returns an error, you'll know thats the problem..