Tag Archives: Cloudant

IBM Bluemix Cloudant DB Setup

I’m working on an Ionic 2 app right now that has an IBM Bluemix Cloudant back-end.  I’m using PouchDB in my Ionic 2 app to synchronise the data from the remote server to my app.

I couldn’t work out why I was getting the following error from PouchDB when I tried to connect to my remote database:

EXCEPTION: {“status”:500,”name”:”unknown_error”,”message”:”Database encountered an unknown error”}

And then I remembered that in the Bluemix Cloudant dashboard I needed to enable CORS (which in my case was actually enabled by default) and also set the Origin Domains to “All Domains”.  In my case the latter option wasn’t set.



I may write about integrating Ionic 2, PouchDB and Bluemix in a later blog post.


I’m a mobile applications developer based in the UK, concentrating primarily on hybrid application development with Ionic and Ionic 2 but also with native development skills. Please visit www.crossplatformsolutions.co.uk for more information about me and how I may be able to help you with mobile application development, particularly with Ionic 2 but also with other mobile frameworks and technologies.  Thanks for visiting.