-
Notifications
You must be signed in to change notification settings - Fork 49
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
namespace not being set #4
Comments
@dbinetti the API_NAMESPACE setting is on master (hasn't been released yet). Hoping to release 0.3.0 today. |
@dbinetti check out the changelog: https://github.com/dustinfarris/ember-django-adapter/blob/master/CHANGELOG.md |
super — thanks On Sat, Jul 26, 2014 at 9:25 AM, Dustin Farris notifications@github.com
|
I'm still experiencing this issue with 0.4.0. Ember CLI is at 0.1.1. Any idea what might be happening? |
Looking into it. May need to update the way addon config is set. |
I'm having the same issue using 0.5.1 from ember-cli; I noticed the docs example uses I'm using CLI 0.1.7 |
@jsalva I've been having a lot of issues with ember-cli 0.1.7. I actually downgraded to 0.1.5. It looks like 0.1.8 and 0.1.9 were released today. Let's try that out and see if it resolves anything. |
sadly, upgrading to 0.1.9 didn't help. |
@jsalva it should work in the config definitely. It has been working for me, but something must have changed in ember-cli after 0.1.5. Something is wrong—thanks for bringing it up. I will open a new issue to fix this. |
@jsalva I cannot reproduce this. I just upgraded to 0.1.9 and everything is working. Are you configuring the adapter in environment.js like this: module.exports = function(environment) {
var ENV = {
APP: {
API_NAMESPACE: 'my-api'
}
};
...
return ENV;
}; |
Yep here it is: //config/environment.js
module.exports = function(environment) {
var ENV = {
modulePrefix: 'myapp',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
API_NAMESPACE: 'myapp/api1'
},
};
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {
// set this to your production API
}
return ENV;
}; |
@jsalva Do you have anything in |
at first, no (assumed the setting would configure an application adapter w/ my API_NAMESPACE for me. Eventually I just used ember cli to generate |
I really am having trouble reproducing. Have started a brand new project with |
@jsalva nevermind. I have been able to confirm this. |
@jsalva we aren't setting a default |
PREFACE: I am a complete and total noob, so forgive me if I'm missing something, but the namespace parameter does not seem to be honored when making requests of the API.
My config:
In console:
Notice that it is hitting the root url. Also, if I change my API itself to serve at the root, all is well.
The text was updated successfully, but these errors were encountered: