-
Notifications
You must be signed in to change notification settings - Fork 75
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
(ArgumentError) could not fetch application environment :globals for application :soap because configuration :globals was not set #88
Comments
You don't need to add |
Hi, thanks for your response. It didn't make any difference unfortunately. |
So, if anybody can help this is the full text of the error; ** (ArgumentError) could not fetch application environment :globals for application :soap because configuration :globals was not set |
Hi, You need to define :config_path in your project. Something like this:
|
This is an unnecessary complication. For one, libraries apparently should not utilize application configuration. Secondly, in the absence of such an entry, |
In partial response to [issue 88](elixir-soap#88), I noticed that Soap fails completely if my application does not define `config :soap, :globals` in its `config/config.exs`, even though a) HTTPoison is the default client and b) version 1.1 is claimed in the documentation to be the default. Applications using a dependency that itself depends on Soap should not need to add anything to their `config/config.exs`, especially if what is expected to be defined therein has a sane default value (version 1.1, and HTTPoison), I redefined `soap_version/0` to first see if it can fetch its configuration; if not, it gracefully returns the (default, according to the docs) version 1.1. Note that the test suite of Soap still assumes that `config/config.exs` contains a configuration. Removing these lines from it makes tests fail. It might be a good idea to get rid of this caveat entirely, and follow the official recommendation to [avoid application configuration for libraries](https://hexdocs.pm/elixir/library-guidelines.html#avoid-application-configuration).
Hi there,
With Elixir 1.9.1 I couldn't go further instead I receive this error: "(ArgumentError) could not fetch application environment :globals for application :soap because configuration :globals was not set"
I tried creating a config/config.exs
And mix.exs file is as follows;
The text was updated successfully, but these errors were encountered: