esp8266Workshop icon indicating copy to clipboard operation
esp8266Workshop copied to clipboard

Connection to Cloudant does not work

Open MarcosXimenes opened this issue 2 years ago • 8 comments

image

MarcosXimenes avatar Sep 21 '21 12:09 MarcosXimenes

@binnes Can you help JuJu ?

johnwalicki avatar Sep 21 '21 12:09 johnwalicki

@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.

johnwalicki avatar Sep 21 '21 13:09 johnwalicki

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

MarcosXimenes avatar Sep 21 '21 14:09 MarcosXimenes

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.

binnes avatar Sep 21 '21 15:09 binnes

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

MarcosXimenes avatar Sep 21 '21 15:09 MarcosXimenes

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

MarcosXimenes avatar Sep 21 '21 15:09 MarcosXimenes

image Now I getting this error. :(

MarcosXimenes avatar Sep 21 '21 16:09 MarcosXimenes

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.

binnes avatar Sep 23 '21 12:09 binnes