Rank 1: Thread
[SOLVED] Getting error Unexpected '<' when trying to login in appwrite cli
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 7: Quantum Computer
Try to run the prebuilt darwin binary from here
Rank 1: Thread
not working 😦
Rank 7: Quantum Computer
Ohhh
I think maybe your domain retuns an HTML content in which give the parser the < character
Check that you can access the target from your command line
Rank 7: Quantum Computer
You can set the endpoint as follows
appwrite client --endpoint https://[HOSTNAME_OR_IP]/v1
Rank 1: Thread
getting this:- appwrite client --endpoint https://cloud.appwrite.io/v1
✓ Success
Rank 7: Quantum Computer
Run like this
Rank 7: Quantum Computer
appwrite client login --endpoint https://[HOSTNAME_OR_IP]/v1
Rank 1: Thread
do i need to add api endpoint in appwrite before login ?
Rank 7: Quantum Computer
Maybe if you had one in the past. Try to login with the endpoint
Rank 7: Quantum Computer
Sorry.
Just try to login after you have set the client
Rank 1: Thread
yes i am doing that.
Rank 1: Thread
Thanks now its working 🙂
Rank 7: Quantum Computer
Good
What I think happend is that somehow the cli interface tried to log to a different location in which the answer was in HTML instead of JSON and there you got you < error
Rank 7: Quantum Computer
😀
Rank 1: Thread
ok
Rank 1: Thread
[SOLVED] Getting error Unexpected '<' when trying to login in appwrite cli