Closed mrluc closed 9 years ago
@mrluc interesting; is it possible that you kept a reference to MyApp.MyUser
somewhere else in the project? Did you try to search in all files for it? Addict itself doesn't reference MyApp.MyUser
- apart from the example on README.md
.
Yeah, I git-grepped for it, and also as I mentioned above the env vals for addict are correct in a running iex, I can spit out the config and see its correct, spit out addicts get_env and see that's correct - but then a post result in that error! Crazy.
I know addict doesn't have that symbol in its project - I just wonder where that val could be coming from! My mix.exs had that value at one point, but no more, and I triggered re compilation of at least my code -- is there any way that the value could have been compiled into an addict artifact?
... aaaand it looks like that was it. :) Completely deleting _build/ fixed it.
Feels like changing the config file should be enough, but it's working now; closing until/if I later find time to reproduce and document better.
Hah nice! I gotta change the configurations out of mix to avoid this kind of mess up :+1:
The app is appropriately configured:
And this config appears to be getting to
Addict.Repository
:However, when following instructions to POST to the
/register
route, I get the following:Any ideas where the MyApp.MyUser reference is coming from? I git-grepped for it and it's not in my project, and as shown above addict's configuration seems to be correct...