Back

Typescript file compiled to index.js not generating response

  • 0
  • Web
alpha#trinity1
30 Jun, 2023, 07:30

Hey all, compiled index.ts to index.js , buh executing index.js cant generate any response when run from nodejs to interact with appwrite

TL;DR
User is having trouble generating a response when running compiled index.js file from Node.js to interact with Appwrite. They ask how to store Appwrite configurable parameters as APPWRITE_FUNCTION_EVENT_DATA and as environmental variables in Node.js. No error or log messages are provided. Someone mentions that the user is using variables incorrectly and warns against sharing API keys publicly. Solution: It is not clear from the thread if a solution is provided. However, it is suggested that the user check their code and make sure they are using the variables correctly.
joeyouss
30 Jun, 2023, 11:48

what's the error shown?

joeyouss
30 Jun, 2023, 11:48

any log msgs?

Drake
30 Jun, 2023, 16:45

You're using the variables incorrectly.

Btw, you shouldn't share your API key publicly

alpha#trinity1
2 Jul, 2023, 08:08

Noted, thank you. Let me relook into that...

alpha#trinity1
2 Jul, 2023, 08:12

No error and no log..

alpha#trinity1
2 Jul, 2023, 09:52

Sir, if I could inquire, how can I store appwrite configurable parameters as APPWRITE_FUNCTION_EVENT_DATA so that I can use them in nodejs. second question, how can i store appwrite configurable parameters as environmental variables so that I can use them in nodejs

alpha#trinity1
2 Jul, 2023, 10:04

Sir, if I could inquire, how can I store appwrite configurable parameters as APPWRITE_FUNCTION_EVENT_DATA so that I can use them in nodejs. second question, how can i store appwrite configurable parameters as environmental variables so that I can use them in nodejs

Drake
2 Jul, 2023, 13:26
alpha#trinity1
3 Jul, 2023, 15:48

Thank you sir

alpha#trinity1
3 Jul, 2023, 15:48

Thank you

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more