Unable to use type sense in vikunja

I have installed vikunja and typsesense in containers in a single pod , but getting internal server error while trying to use vikunja web app.

following env passed

  VIKUNJA_TYPESENSE_ENABLED: 'true'
  VIKUNJA_TYPESENSE_URL: 'http://127.0.0.1:8108'
  VIKUNJA_TYPESENSE_APIKEY: <some random characters>

when I tried to check logs I got this

2024-03-07T17:19:26.061525434+05:30: ERROR	▶ handler/ReadAllWeb 257 status: 401 response: {"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."}
2024-03-07T17:19:26.061588314+05:30: WEB 	▶ 103.164.24.237 31fee73409cb7ddc2eb1ac263cc7e0b9 GET 500 /api/v1/projects/19/tasks?sort_by[]=position&order_by[]=asc&filter_by[]=done&filter_value[]=false&filter_comparator[]=equals&filter_concat=and&page=1 3.000116ms - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-07T17:19:26.063596311+05:30: WEB 	▶ 103.164.24.237 6f7cba4288549aa0a37b43cc6b75d26a GET 200 /api/v1/projects/19 4.914593ms - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

while manualling indexing I am getting this error :

/app/vikunja # /app/vikunja/vikunja index 
2024-03-07T17:20:25.179454177+05:30: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-03-07T17:20:25.210330772+05:30: INFO	▶ migration/Migrate 05c Ran all migrations successfully.
2024-03-07T17:20:25.210520652+05:30: INFO	▶ cmd/func4 05d Indexing… This may take a while.
2024-03-07T17:20:25.214098007+05:30: CRITICAL	▶ cmd/func4 05e Could not create Typesense collections: status: 401 response: {"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."}
/app/vikunja # /app/vikunja/vikunja index 
2024-03-07T17:20:32.235669227+05:30: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-03-07T17:20:32.265876423+05:30: INFO	▶ migration/Migrate 05c Ran all migrations successfully.
2024-03-07T17:20:32.266070303+05:30: INFO	▶ cmd/func4 05d Indexing… This may take a while.
2024-03-07T17:20:32.267159781+05:30: CRITICAL	▶ cmd/func4 05e Could not create Typesense collections: status: 401 response: {"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."}
/app/vikunja # /app/vikunja/vikunja index 
2024-03-07T17:20:39.040180801+05:30: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-03-07T17:20:39.067912801+05:30: INFO	▶ migration/Migrate 05c Ran all migrations successfully.
2024-03-07T17:20:39.068105121+05:30: INFO	▶ cmd/func4 05d Indexing… This may take a while.
2024-03-07T17:20:39.069184279+05:30: CRITICAL	▶ cmd/func4 05e Could not create Typesense collections: status: 401 response: {"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."}
/app/vikunja # ll

Can you verify the typesense api key is valid? Build A Search Application | Typesense

thank you , it worked , the api key was the issue