appwrite: Bug Report: Unexpected token o in JSON at position 1, deploy function

I have set up my AppWrite Instance via docker compose but using my own existing Traefik setup on my server.

Able to access the console and using SSL Certificate provided via my traefik instance.

Installed Appwrite CLI and login gets a success.

I’ve then run appwrite init project and able to link to a project I had already created in the console.

appwrite init function and then created a test function.

I haven’t edited the code of the code generated and then run a appwrite function deploy.

Able to select my function and instantly get this error:

➜ appwrite git:(main) ✗ appwrite deploy function ? Which functions would you like to deploy? draftTest () ℹ Info Deploying function draftTest ( ) ✗ Error Unexpected token o in JSON at position 1

Can’t find any logs to try and debug further so have raised this issue.


Appwrite Version: 0.13.0.300

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

Ugh, nevermind. I closed VS Code, reopened and its fine. Thank you guys for helping!

Rolling back to appwrite-cli@0.15.0 fixed this error for me.