sdk-for-cli icon indicating copy to clipboard operation
sdk-for-cli copied to clipboard

🐛 Bug Report: Unable to log in with self signed certificate

Open Ricolo53 opened this issue 1 year ago • 3 comments

👟 Reproduction steps

Since the update, it's impossible to login

❯ appwrite client --self-signed true
✓ Success: Setting client
❯ appwrite client --debug
endpoint :
key :
cookie :
selfSigned : false
project

✓ Success: Setting client
❯ appwrite client --endpoint "https://my.url/v1" --verbose
Error: Invalid endpoint or your Appwrite server is not running as expected.
    at /snapshot/sdk-for-cli/lib/commands/generic.js:271:23
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I've done a reset, deleted the configuration json, but nothing works, I can't switch the cli to self-signed.

👍 Expected behavior

Business as usual

👎 Actual Behavior

Can't use it

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Ricolo53 avatar Sep 20 '24 11:09 Ricolo53

I'am having the same problem. I can't deploy functions getting this error:

AppwriteException [Error]: fetch failed at Client.call (/snapshot/sdk-for-cli/lib/client.js:192:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async accountGet (/snapshot/sdk-for-cli/lib/commands/account.js:60:16) { code: undefined, response: undefined }

jannepicard avatar Nov 18 '24 10:11 jannepicard

@PromILLEPapst123 I download old cli (v5) and use it instead of v6, it's works nice

Ricolo53 avatar Dec 18 '24 15:12 Ricolo53

@Ricolo53 how have you done that? I can't redeploy an old backup because it's too far away. Can i downgrade to an old cli? In the internet i could'nt found something this way. Thanks for your respond

jannepicard avatar Dec 19 '24 06:12 jannepicard

Hi there !@PromILLEPapst123, it seems to work for me Image

please feel free to reopen if you again face the issue

ChiragAgg5k avatar May 02 '25 12:05 ChiragAgg5k