run-llama / chat-llamaindex

https://chat.llamaindex.ai
MIT License
849 stars 261 forks source link

[Bug] deployement on aws amplify is not working properly #72

Closed ada6597 closed 8 months ago

ada6597 commented 8 months ago

Describe the bug In local setup it's working fine , but when I deploy it to aws amplify , it's giving internal server error (500) for API call

not it's calling this API : https://develop.d2tnt2s5bwrvl6.amplifyapp.com/api/llm instead of: http://localhost:300/api/llm

To Reproduce Steps to reproduce the behavior: Deploy it to aws amplify

Expected behavior Should call api/llm successfully Screenshots If applicable, add screenshots to help explain your problem.

Deployment

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional Logs Add any logs about the problem here.

marcusschiesser commented 8 months ago

Currently deployment to amplify is not supported, did you try Vercel?

ada6597 commented 8 months ago

Hi @marcusschiesser, Yes , tried on vercel it's working fine.

Letter on I found out that adding the env variable is a little bit different for aws amplify, made changes according to that , and it is Now working fine with aws amplify also.

Thanks for your reply!