I am implementing a Function using Node . but while I am hitting the API it's giving authentication
- 0
- Web
Can anyone please help me with this issue?
can you show your index.js
Sure
Already given the screen shot
are you sure the app is running on localhost port 3000?
error code 500 means it's a server issue
nothing related to code tbh
for run the server I have followed this https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/node-18.0
let me share my terminal Screen shot
please don't tag people just because you need help with something as it's very disruptive
sorry for this π¦
what did you put in the request headers?
I haven't put anything
if runtime says it needs an INTERNAL_RUNTIME_KEY
and you don't pass the same value as the X-Internal-Challenge
header you'll get a unauthorized error. Please make sure you read through https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/node-18.0#local-development carefully
Okay let me check and Thank you π
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...