You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app.routes.js I have the following (using ui-router):
functionappRoutes($stateProvider){$stateProvider....state('app.cli',{url: '/cli',template: cliTemplate,controller: 'CLIController as cli',resolve: {contents: ['contentful',(contentful)=>{returncontentful.entries('','jscli').then((response)=>{returnresponse.data;},(error)=>{console.log(`Error: ${response.status}`);});}]}});}appRoutes.$inject=['$stateProvider'];exportdefaultappRoutes;
When navigating to this page, so that a call is made to the API for the requested data, I was getting a malformed URI error.
Delving in I found that the request was going to http://:80/spaces/${space_id}/entries.
It was missing the host.
Ensuring that the host is supplied among the options in contentful.config.js for each space resolved the issue.
I'm assuming that this might be as easy as adding this instruction to the documentation examples, but I didn't dig deep enough to learn why the host wasn't remaining intact when merged on line 313 of angular-contentful.js in this.setOptions() method.
Edit: grammar.
The text was updated successfully, but these errors were encountered:
I may be doing something incorrectly here, so I apologize for my ignorance if that's the case.
I have a contentful.config.js file that has the following so that I can reference multiple spaces:
In my app.routes.js I have the following (using ui-router):
When navigating to this page, so that a call is made to the API for the requested data, I was getting a malformed URI error.
Delving in I found that the request was going to
http://:80/spaces/${space_id}/entries
.It was missing the host.
Ensuring that the host is supplied among the options in contentful.config.js for each space resolved the issue.
I'm assuming that this might be as easy as adding this instruction to the documentation examples, but I didn't dig deep enough to learn why the host wasn't remaining intact when merged on line 313 of angular-contentful.js in
this.setOptions()
method.Edit: grammar.
The text was updated successfully, but these errors were encountered: