Server Side Swift with Kitura - Part 15: | Ray Wenderlich Videos

After I show you how to set up an instance of CouchDB in IBM Cloud, I'll challenge you to connect to it once you have all the information you need to do so.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3770-server-side-swift-with-kitura/lessons/15

In this step I get this error in the terminal after run ‘./rundocker.sh’ :

“docker: invalid reference format: repository name must be lowercase.”

How to fix this problem?

@dokun1 Can you please help with this when you get a chance? Thank you - much appreciated! :]

The json credentials I get for the service account look completely different than the video. It has fields like apikey, iam_apikey_description, iam_apikey_name, iam_role_crn, etc… Using this content in config/cloudant-credentials.json fails to create a connection to the cloud server.

I figured out the problem. When creating the cloudant resource, in the “Available authentication methods” option, you must choose “Use both legacy credentials and IAM”.

@chewbone Thank you for sharing the solution - much appreciated!