Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Connection to Cloudant does not work #16

Open
MarcosXimenes opened this issue Sep 21, 2021 · 8 comments
Open

Connection to Cloudant does not work #16

MarcosXimenes opened this issue Sep 21, 2021 · 8 comments

Comments

@MarcosXimenes
Copy link

image

@johnwalicki
Copy link
Collaborator

@binnes Can you help JuJu ?

@johnwalicki
Copy link
Collaborator

@iJuniorX There are two types of Cloudant service instances. The 'default' Cloudant instance uses IAM only. If you have one of those, you might have to delete it and create a new Cloudant instance. Create a Cloudant service instance that has 'IAM and Legacy APIKEY credentials' I'm not near my laptop to take a screenshot.

@MarcosXimenes
Copy link
Author

I'm using this same using as credentials. I noticed that the other one didn't have a PASSWORD so I changed it. But just the same this error occurs.
image

@binnes
Copy link
Owner

binnes commented Sep 21, 2021

the credentials have to come from Cloudant - if you have legacy APIKEY enabled this will be populated as per the workshop instructions. If you deployed Cloudant with the default Authentication method, then you do not have legacy APIKEY enabled, so will need to alter the code to use IAM authentication, or as John suggested, redeploy Cloudant selecting the IAM and Legacy authentication option.

FYI - the current plan is to archive the repository in the near future as it is no longer being actively maintained.

@MarcosXimenes
Copy link
Author

When will this be archived? This my college project is for 10/06/2021 ...

@MarcosXimenes
Copy link
Author

I am using the IAM and Legacy authentication option, as the image shows. (I just created the credential and deleted)
image

@MarcosXimenes
Copy link
Author

image
Now I getting this error. :(

@binnes
Copy link
Owner

binnes commented Sep 23, 2021

It is going to be archived in the next few days, but it will still be available as an archived repo. However, as you are finding it is no longer being maintained, so cloud services have been updated, APIs have been updated, so as you are finding, the code in the this repo no longer works against the latest versions of the cloud services.

I suggest you follow the instructions in the cloudant python package and modify the code to use the newer ibmcloudant package - you should also adopt IAM authentication rather than the legacy authentication.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants